Mercurial > silverbladetech
comparison SSRS/SSRS.Tests/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; | |
3 using SSRS.Services.DTO; | |
4 | |
5 namespace SSRS.Tests | |
6 { | |
7 [TestFixture] | |
8 public class ReportsServiceFixture | |
9 { | |
10 [Test] | |
11 public void WhenExecute_IncludingParameters_ShouldReturnNotNullResult() | |
12 { | |
13 var service = new ReportsService(); | |
14 var request = new ReportsRequest() { IncludeParameters = true }; | |
15 var response = service.OnGet(request) as ReportsResponse; | |
16 Assert.NotNull(response); | |
17 } | |
18 | |
19 [Test] | |
20 public void WhenExecute_ExcludingParameters_ShouldReturnNotNullResult() | |
21 { | |
22 var service = new ReportsService(); | |
23 var request = new ReportsRequest() { IncludeParameters = false }; | |
24 var response = service.OnGet(request) as ReportsResponse; | |
25 Assert.NotNull(response); | |
26 } | |
27 } | |
28 } |