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