112
|
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 }
|