public async Task WhenMapping_ThenShouldSetReservationId() { var fixture = new AddCohortCommandToDraftApprenticeshipDetailsMapperTestsFixture(); var draftApprenticeshipDetails = await fixture.Map(); Assert.AreEqual(fixture.Command.ReservationId, draftApprenticeshipDetails.ReservationId); }
public async Task WhenMapping_ThenShouldSetProperties() { var fixture = new AddCohortCommandToDraftApprenticeshipDetailsMapperTestsFixture(); var draftApprenticeshipDetails = await fixture.Map(); Assert.AreEqual(fixture.Command.FirstName, draftApprenticeshipDetails.FirstName); Assert.AreEqual(fixture.Command.LastName, draftApprenticeshipDetails.LastName); Assert.AreEqual(fixture.Command.Uln, draftApprenticeshipDetails.Uln); Assert.AreEqual(fixture.Command.Cost, draftApprenticeshipDetails.Cost); Assert.AreEqual(fixture.Command.StartDate, draftApprenticeshipDetails.StartDate); Assert.AreEqual(fixture.Command.EndDate, draftApprenticeshipDetails.EndDate); Assert.AreEqual(fixture.Command.DateOfBirth, draftApprenticeshipDetails.DateOfBirth); Assert.AreEqual(fixture.Command.OriginatorReference, draftApprenticeshipDetails.Reference); Assert.AreEqual(fixture.TrainingProgramme, draftApprenticeshipDetails.TrainingProgramme); }