Mercurial > silverbladetech
view 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 |
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)); } } }