Mercurial > silverbladetech
view SSRS/SSRS.Services.WebTests/ReportsServiceFixture.cs @ 113:954f66bb8dbf
Portable library added for DTO
author | adminsh@apollo |
---|---|
date | Sat, 19 May 2012 16:21:07 +0100 |
parents | b9d5f934cb21 |
children | e51a6af1c98d |
line wrap: on
line source
using System.Collections.Generic; using NUnit.Framework; using SSRS.Services.DTO; using ServiceStack.Service; using ServiceStack.ServiceClient.Web; namespace SSRS.Services.WebTests { [TestFixture] public class ReportsServiceFixture { [Test] public void ReportsService_REST_GET_returns_reportList_greater_than_zero() { var restClient = new JsonServiceClient("http://localhost:2505/services") as IRestClient; var allReports = restClient.Get<List<ReportInfo>>("/reports"); Assert.That(allReports.Count, Is.GreaterThan(0)); } } }