public void GetDeliveringVolume_SingleHose_ReturnsHoseDeliveringVolume()
        {
            _mockIO.Setup(c => c.SendAndReceive(CompanyCommands.GetHosesDeliveringVolume)).Returns("(04124394)");
            var forecourt = new Company(_mockIO.Object);

            var volume = forecourt.GetDeliveringVolume(new Hose(1));
            forecourt.Dispose();

            volume.Should().Be(1243.94d);
        }
        public void GetDeliveringVolume_HoseList_ReturnsDeliveringVolumeForEachHose()
        {
            _mockIO.Setup(c => c.SendAndReceive(CompanyCommands.GetHosesDeliveringVolume)).Returns("(0412439444002075)");
            var forecourt = new Company(_mockIO.Object);
            var hose1 = new Hose(1);
            var hose2 = new Hose(2);
            var hoseList = new List<Hose>() { hose1, hose2 };

            var dic = forecourt.GetDeliveringVolume(hoseList);
            forecourt.Dispose();

            dic[hose1].Should().Be(1243.94d);
            dic[hose2].Should().Be(20.75d);
        }