public void ThenTheChangesShouldBeMadeToTheCarInTheSystem()
        {
            _updatedCarInput.Should().NotBeNull();

            CarInfo storedCar = _actor.AsksFor(StoredCar.WithRegistration(_updatedCarInput.Registration));

            storedCar.Registration.Should().Be(_updatedCarInput.Registration);
            storedCar.Make.Should().Be(_updatedCarInput.Make);
            storedCar.Model.Should().Be(_updatedCarInput.Model);
            storedCar.MotExpiry.Should().Be(_updatedCarInput.MotExpiry);
            storedCar.SuppressMotReminder.Should().Be(_updatedCarInput.SuppressMotReminder);
        }
        public void ThenTheCarShouldBeAddedToTheSystemWithTheDetailsProvided()
        {
            _newCarInput.Should().NotBeNull();

            CarInfo storedCar = _actor.AsksFor(StoredCar.WithRegistration(_newCarInput.Registration));

            storedCar.CustomerId.Should().Be(_newCarInput.CustomerId);
            storedCar.Make.Should().Be(_newCarInput.Make);
            storedCar.Model.Should().Be(_newCarInput.Model);
            storedCar.MotExpiry.Should().Be(_newCarInput.MotExpiry);
            storedCar.SuppressMotReminder.Should().Be(_newCarInput.SuppressMotReminder);
        }
        public void ThenTheFollowingCarsShouldBePresentInTheSystem(Table table)
        {
            table.Rows.ForEach(expectedValues =>
            {
                CarInfo storedCar = _actor.AsksFor(StoredCar.WithRegistration(expectedValues["Registration"]));

                storedCar.Should().NotBeNull();
                storedCar.Registration.Should().Be(expectedValues["Registration"]);
                storedCar.Make.Should().Be(expectedValues["Make"]);
                storedCar.Model.Should().Be(expectedValues["Model"]);
            });
        }
        public void WhenIRequestTheCarResource()
        {
            _storedCar.Should().NotBeNull();

            _lastResponse.Response = _actor.Calls(Get.ResourceAt($"api/car/{_storedCar.Registration}"));
        }
        public void ThenThereShouldBeNoCarWithRegistration(string registration)
        {
            CarInfo storedCar = _actor.AsksFor(StoredCar.WithRegistration(registration));

            storedCar.Should().BeNull();
        }