public WhenChangeOfPartyRequestIsUpdatedFixture() { var autoFixture = new Fixture(); _providerId = autoFixture.Create <long>(); _employerAccountId = autoFixture.Create <long>(); _changeOfPartyRequest = autoFixture.Create <CommitmentsV2.Models.ChangeOfPartyRequest>(); _draftApprenticeship = new CommitmentsV2.Models.DraftApprenticeship(); _draftApprenticeship.SetValue(x => x.Cost, autoFixture.Create <decimal>()); _draftApprenticeship.SetValue(x => x.StartDate, autoFixture.Create <DateTime>()); _draftApprenticeship.SetValue(x => x.EndDate, autoFixture.Create <DateTime>()); UnitOfWorkContext = new UnitOfWorkContext(); }
public void SetPrice(decimal?price) { _draftApprenticeship.SetValue(x => x.Cost, price); }