comparison SSRS/SSRS.Services.UnitTests/ReportsServiceFixture.cs @ 112:b9d5f934cb21

Initial upload
author adminsh@apollo
date Sat, 19 May 2012 16:09:07 +0100
parents
children
comparison
equal deleted inserted replaced
111:6cb8cd05ad6b 112:b9d5f934cb21
1 using NUnit.Framework;
2 using SSRS.Services.DTO;
3
4 namespace SSRS.Services.UnitTests
5 {
6 [TestFixture]
7 public class ReportsServiceFixture
8 {
9 [Test]
10 public void WhenExecute_IncludingParameters_ShouldReturnNotNullResult()
11 {
12 var service = new ReportsService();
13 var request = new ReportsRequest() { IncludeParameters = true };
14 var response = service.OnGet(request) as ReportsResponse;
15 Assert.NotNull(response);
16 }
17
18 [Test]
19 public void WhenExecute_ExcludingParameters_ShouldReturnNotNullResult()
20 {
21 var service = new ReportsService();
22 var request = new ReportsRequest() { IncludeParameters = false };
23 var response = service.OnGet(request) as ReportsResponse;
24 Assert.NotNull(response);
25 }
26 }
27 }