public void SetUp() { _validViewModel = new AddEditApprenticeshipsViewModel { NumberOfApprentices = 2, TotalInstallments = 24, StartDateMonth = DateTime.Today.Month, StartDateYear = DateTime.Today.Year, TotalCostAsString = "12000", IsTransferFunded = "", Course = new Models.Estimation.ApprenticeshipCourse { CourseType = Models.Estimation.ApprenticeshipCourseType.Standard, Duration = 12, FundingCap = 2, Id = "hello", Level = 2, Title = "Test Standard", FundingPeriods = new List <Models.Estimation.FundingPeriod> { new Models.Estimation.FundingPeriod { EffectiveFrom = DateTime.Today.AddMonths(-1), EffectiveTo = DateTime.Today.AddMonths(11), FundingCap = 6000 } } } }; _validator = new AddEditApprenticeshipViewModelValidator(); }
public void SetUp() { _validViewModel = new AddEditApprenticeshipsViewModel { NumberOfApprentices = 2, TotalInstallments = 24, StartDateMonth = DateTime.Today.Month, StartDateYear = DateTime.Today.Year, TotalCostAsString = "12000" }; _validator = new AddEditApprenticeshipViewModelValidator(); }
public EstimationController( IEstimationOrchestrator estimationOrchestrator, IAddApprenticeshipOrchestrator addApprenticeshipOrchestrator, IMembershipService membershipService, AddEditApprenticeshipViewModelValidator validator, ILog log) { _estimationOrchestrator = estimationOrchestrator; _membershipService = membershipService; _validator = validator; _addApprenticeshipOrchestrator = addApprenticeshipOrchestrator; _logger = log; }