view SSRS/SSRS.Services.UnitTests/ReportsServiceFixture.cs @ 116:d3380f499575

requires layout tidy up
author stevenh7776
date Sun, 20 May 2012 18:48:00 +0100
parents b9d5f934cb21
children
line wrap: on
line source

using NUnit.Framework;
using SSRS.Services.DTO;

namespace SSRS.Services.UnitTests
{
    [TestFixture]
    public class ReportsServiceFixture
    {
        [Test]
        public void WhenExecute_IncludingParameters_ShouldReturnNotNullResult()
        {
            var service = new ReportsService(); 
            var request = new ReportsRequest() { IncludeParameters = true };
            var response = service.OnGet(request) as ReportsResponse;
            Assert.NotNull(response);
        }

        [Test]
        public void WhenExecute_ExcludingParameters_ShouldReturnNotNullResult()
        {
            var service = new ReportsService();
            var request = new ReportsRequest() { IncludeParameters = false };
            var response = service.OnGet(request) as ReportsResponse;
            Assert.NotNull(response);
        }
    }
}