Mercurial > silverbladetech
diff SSRS/SSRS.Tests/ReportsServiceFixture.cs @ 112:b9d5f934cb21
Initial upload
author | adminsh@apollo |
---|---|
date | Sat, 19 May 2012 16:09:07 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SSRS/SSRS.Tests/ReportsServiceFixture.cs Sat May 19 16:09:07 2012 +0100 @@ -0,0 +1,28 @@ +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); + } + } +}