112
|
1 using System.Collections.Generic;
|
|
2 using NUnit.Framework;
|
|
3 using SSRS.Services.DTO;
|
|
4 using ServiceStack.Service;
|
|
5 using ServiceStack.ServiceClient.Web;
|
|
6
|
|
7 namespace SSRS.Services.WebTests
|
|
8 {
|
|
9 [TestFixture]
|
|
10 public class ReportsServiceFixture
|
|
11 {
|
|
12 [Test]
|
|
13 public void ReportsService_REST_GET_returns_reportList_greater_than_zero()
|
|
14 {
|
|
15 var restClient = new JsonServiceClient("http://localhost:2505/services") as IRestClient;
|
|
16 var allReports = restClient.Get<List<ReportInfo>>("/reports");
|
|
17 Assert.That(allReports.Count, Is.GreaterThan(0));
|
|
18 }
|
|
19 }
|
|
20 }
|