public async Task UpdateVehicleData_Should_ReturnWithSameHeaderData()
        {
            // Arrange
            var dummyVehicle = new CustomerVehicle
            {
                CustomerId   = Guid.NewGuid(),
                ClientId     = Guid.NewGuid(),
                Registration = "LD66OFZ",
                Make         = "KIA",
                Model        = "CEED",
                Colour       = "BLACK",
                MotData      = new MotData {
                    MOTExpiryDate = DateTime.Parse("2019-01-01")
                }
            };
            await repo.Create(dummyVehicle, dummyVehicle.CustomerId, dummyVehicle.ClientId);

            var sut = new CustomerVehicleService(repo, new MockVehicleDataService());
            // Act
            var result = await sut.UpdateMotData(dummyVehicle.Id, dummyVehicle.ClientId);

            // Assert
            Assert.Equal(dummyVehicle.Model.ToUpper(), result.Model.ToUpper());
            Assert.Equal(dummyVehicle.Make.ToUpper(), result.Make.ToUpper());
            Assert.Equal(dummyVehicle.Registration.ToUpper(), result.Registration.ToUpper());
            Assert.Equal(dummyVehicle.Colour.ToUpper(), result.Colour.ToUpper());
        }
        public async Task UpdateVehicleMotData_Should_ReturnModifiedMotData()
        {
            // Arrange
            var dummyVehicle = new CustomerVehicle
            {
                CustomerId   = Guid.NewGuid(),
                ClientId     = Guid.NewGuid(),
                Registration = "LD66OFZ",
                MotData      = new MotData {
                    MOTExpiryDate = DateTime.Parse("2019-01-01")
                }
            };
            await repo.Create(dummyVehicle, dummyVehicle.CustomerId, dummyVehicle.ClientId);

            var sut = new CustomerVehicleService(repo, new MockVehicleDataService());
            // Act
            var result = await sut.UpdateMotData(dummyVehicle.Id, dummyVehicle.ClientId);

            // Assert
            Assert.NotNull(result.MotData);
        }
        public async Task UpdateVehicleData_Should_ReturnExpiryDateLaterThanBeforeUpdate()
        {
            // Arrange
            var currentExpiryDate = DateTime.Parse("2019-01-01");
            var dummyVehicle      = new CustomerVehicle
            {
                CustomerId   = Guid.NewGuid(),
                ClientId     = Guid.NewGuid(),
                Registration = "LD66OFZ",
                MotData      = new MotData {
                    MOTExpiryDate = currentExpiryDate
                }
            };
            await repo.Create(dummyVehicle, dummyVehicle.CustomerId, dummyVehicle.ClientId);

            var sut = new CustomerVehicleService(repo, new MockVehicleDataService());
            // Act
            var result = await sut.UpdateMotData(dummyVehicle.Id, dummyVehicle.ClientId);

            // Assert
            Assert.True(result.MotData.MOTExpiryDate > currentExpiryDate);
        }