comparison SSRS/SSRS.Services.WebTests/ReportsServiceFixture.cs @ 112:b9d5f934cb21

Initial upload
author adminsh@apollo
date Sat, 19 May 2012 16:09:07 +0100
parents
children e51a6af1c98d
comparison
equal deleted inserted replaced
111:6cb8cd05ad6b 112:b9d5f934cb21
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 }