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