public void Then_Fahrenheit_Should_Be_59()
        {
            MockConverters.CelciusToFahrenHeight(Arg.Any <double>()).Returns(59);

            SUT.AddTemperatureData(10.0d);
            SUT.AddTemperatureData(20d);

            SUT.CurrentTempType = "Fahrenheit";

            Assert.AreEqual(59, SUT.DisplayTemperature);
        }
        public void Then_MPH_Display_Should_Use_Converter()
        {
            MockConverters.KPHtoMPH(Arg.Any <double>()).Returns(7.5);

            SUT.AddSpeedData(8.0d);
            SUT.AddSpeedData(16.0934d);

            SUT.CurrentSpeedType = "MPH";

            Assert.AreEqual(7.5, SUT.DisplaySpeed, 0.1);
        }
        protected override void Because()
        {
            base.Because();
            _mockBBCWeather  = Substitute.For <IWeatherData>();
            _mockAccuWeather = Substitute.For <IWeatherData>();

            _mockBBCWeather.TemperatureCelsius.Returns(10d);
            _mockAccuWeather.TemperatureCelsius.Returns(20d);
            MockConverters.BBCToGeneric(Arg.Any <BbcWeatherResult>()).Returns(_mockBBCWeather);
            MockConverters.AccuToGeneric(Arg.Any <AccWeatherResult>()).Returns(_mockAccuWeather);
        }
        protected override void Because()
        {
            base.Because();
            _mockBBCWeather  = Substitute.For <IWeatherData>();
            _mockAccuWeather = Substitute.For <IWeatherData>();

            _mockBBCWeather.WindspeedKPH.Returns(4.97d);
            _mockAccuWeather.WindspeedKPH.Returns(10d);
            MockConverters.BBCToGeneric(Arg.Any <BbcWeatherResult>()).Returns(_mockBBCWeather);
            MockConverters.AccuToGeneric(Arg.Any <AccWeatherResult>()).Returns(_mockAccuWeather);
        }