annotate SSRS/SSRS.Tests/ReportsServiceFixture.cs @ 118:fa4ba8943048

final version
author stevenh7776
date Sun, 27 May 2012 19:53:23 +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;
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
3 using SSRS.Services.DTO;
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
4
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
5 namespace SSRS.Tests
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
6 {
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
7 [TestFixture]
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
8 public class ReportsServiceFixture
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
9 {
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
10 [Test]
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
11 public void WhenExecute_IncludingParameters_ShouldReturnNotNullResult()
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
12 {
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
13 var service = new ReportsService();
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
14 var request = new ReportsRequest() { IncludeParameters = true };
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
15 var response = service.OnGet(request) as ReportsResponse;
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
16 Assert.NotNull(response);
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
17 }
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
18
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
19 [Test]
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
20 public void WhenExecute_ExcludingParameters_ShouldReturnNotNullResult()
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
21 {
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
22 var service = new ReportsService();
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
23 var request = new ReportsRequest() { IncludeParameters = false };
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
24 var response = service.OnGet(request) as ReportsResponse;
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
25 Assert.NotNull(response);
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
26 }
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
27 }
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
28 }