Source

TrafficLight / src / Tests / Integration / Services / DelcomTrafficLightProjectStatusIndicatorServiceSpecs.cs

Full commit
using NUnit.Framework;
using RossCode.TrafficLight.Core.Domain;
using RossCode.TrafficLight.Core.Services;
using RossCode.TrafficLight.Core.Services.Indicators;

namespace RossCode.TrafficLight.Tests.Integration.Services
{
    [TestFixture, Category("Delcom"), Ignore]
    public class DelcomTrafficLightProjectStatusIndicatorServiceSpecs
    {
        [Test]
        public void it_should_turn_the_light_green()
        {
            using (var indicatorService = new DelcomTrafficLightBuildStatusIndicatorService())
            {
                indicatorService.SetBuildStatus(BuildStatus.Success);
            }
        }

        [Test]
        public void it_should_turn_the_light_red()
        {
            using (var indicatorService = new DelcomTrafficLightBuildStatusIndicatorService())
            {
                indicatorService.SetBuildStatus(BuildStatus.Failing);
            }
        }

        [Test]
        public void it_should_turn_the_light_yellow()
        {
            using (var indicatorService = new DelcomTrafficLightBuildStatusIndicatorService())
            {
                indicatorService.SetBuildStatus(BuildStatus.Building);
            }
        }
    }
}