Mercurial > silverbladetech
view SSRS/SSRS.Tests/ReportsServiceFixture.cs @ 113:954f66bb8dbf
Portable library added for DTO
author | adminsh@apollo |
---|---|
date | Sat, 19 May 2012 16:21:07 +0100 |
parents | b9d5f934cb21 |
children |
line wrap: on
line source
using NUnit.Framework; using SSRS.Services; using SSRS.Services.DTO; namespace SSRS.Tests { [TestFixture] public class ReportsServiceFixture { [Test] public void WhenExecute_IncludingParameters_ShouldReturnNotNullResult() { var service = new ReportsService(); var request = new ReportsRequest() { IncludeParameters = true }; var response = service.OnGet(request) as ReportsResponse; Assert.NotNull(response); } [Test] public void WhenExecute_ExcludingParameters_ShouldReturnNotNullResult() { var service = new ReportsService(); var request = new ReportsRequest() { IncludeParameters = false }; var response = service.OnGet(request) as ReportsResponse; Assert.NotNull(response); } } }