public static Agency Create(AgencyId companyLocationId, AgencyRole companyLocationRole, IDateTimeProvider provider) { //todo val var currentDate = provider.UtcNow; return(new Agency(companyLocationId, companyLocationRole, currentDate, currentDate)); }
private Agency(AgencyId companyLocationId, AgencyRole companyLocationRole, DateTime roleAssignDate, DateTime setUpDate) { Id = companyLocationId; Role = companyLocationRole; RoleAssignDate = roleAssignDate; SetUpDate = SetUpDate; RentalCars = new List <RentalCarId>(); }