public HoursEntryResolver(Domain.Cases.Case targetCase, Domain.Cases.CaseAuthorizationHours authHours, Data.Services.ICaseService caseService) { this.targetCase = targetCase; subjectHours = authHours; ValidationErrors = new List <Dymeng.Framework.Validation.ValidationError>(); this.caseService = caseService; _context2 = new Data.V2.CoreContext(); }
/*********************** * * CTOR/DTOR * **********************/ public CrossHoursValidation(Data.Services.ICaseService caseService, DateTime firstDayOfPeriod) { Errors = new List <DomainServices.Hours.CrossHoursValidation.Error>(); StartDate = firstDayOfPeriod; EndDate = firstDayOfPeriod.AddMonths(1).AddSeconds(-1); _caseService = caseService; Hours = _caseService.GetCaseHoursByDateRange(StartDate, EndDate); context = new Data.Models.CoreEntityModel(); }
public void Initialize() { _caseService = new CaseServiceStub(); }