public void Authorise_SingleHose_AuthoriseHose()
        {
            var mock = new EZTechMockIO();
            var forecourt = new EZTech(mock);

            forecourt.Authorise(new Hose(1));
            forecourt.Dispose();

            var tuple = new Tuple<int, short>(1, 3);
            mock.SetPumpPropertiesExecutions.ContainsKey(tuple).Should().Be(true);
            mock.SetPumpPropertiesExecutions[tuple].Should().Be.GreaterThan(0);
        }
        public void SetClock_DateTimeValues_SetsClockWithSpecifiedDateTimeValues()
        {
            var mock = new EZTechMockIO();
            var forecourt = new EZTech(mock);
            var newDateTime = new DateTime(2012, 6, 7, 15, 23, 0);

            forecourt.SetClock(newDateTime);
            forecourt.Dispose();

            mock.SetDateTimeExecutions.ContainsKey(newDateTime).Should().Be(true);
            mock.SetDateTimeExecutions[newDateTime].Should().Be.GreaterThan(0);
        }
        public void SetPrice_SingleHoseAndSomeValue_SetsHosePriceWithSpecifiedValue()
        {
            var mock = new EZTechMockIO();
            var forecourt = new EZTech(mock);

            forecourt.SetPrice(new Hose(1), 3.784);
            forecourt.Dispose();

            var tuple = new Tuple<int, double>(1, 3.784);
            mock.SetHosePricesExecutions.ContainsKey(tuple).Should().Be(true);
            mock.SetHosePricesExecutions[tuple].Should().Be.GreaterThan(0);
        }
        public void PresetByVolume_SingleHoseAndSomeVolume_PresetHoseWithSpecifiedVolume()
        {
            var mock = new EZTechMockIO();
            var forecourt = new EZTech(mock);

            forecourt.PresetByVolume(new Hose(1), 158d);
            forecourt.Dispose();

            var tuple = new Tuple<int, short, double, short>(1, 3, 158d, 1);
            mock.LoadPresetExecutions.ContainsKey(tuple).Should().Be(true);
            mock.LoadPresetExecutions[tuple].Should().Be.GreaterThan(0);
        }