annotate SSRS/SSRS.Services.UnitTests/ReportsServiceFixture.cs @ 121:8f94475d3146 tip

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