public void Then_the_current_incentive_phase_is_created_by_the_factory_method() { // Arrange var expectedPhase = new IncentivePhase(Phase.Phase2); // Act var result = IncentivePhase.Create(); // Assert result.Should().BeEquivalentTo(expectedPhase); }
public void Submit(DateTime submittedAt, string submittedByEmail, string submittedByName) { Model.Status = IncentiveApplicationStatus.Submitted; Model.DateSubmitted = submittedAt; Model.SubmittedByEmail = submittedByEmail; Model.SubmittedByName = submittedByName; Model.ApprenticeshipModels.ToList().ForEach(m => m.Phase = IncentivePhase.Create().Identifier); Model.ApprenticeshipModels = FilterEligibleApprenticeships(Model.ApprenticeshipModels); AddEvent(new Submitted(Model)); }