diff 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 diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SSRS/SSRS.Services.WebTests/ReportsServiceFixture.cs	Sat May 19 16:09:07 2012 +0100
@@ -0,0 +1,20 @@
+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));
+        }
+    }
+}