public void Initialize() { _calendar = new Calendar(); _calendar.SetDate(2015, 7); _holidays = new List<Day>(); _employee = new Employee {Holidays = _holidays}; _employeeCalendar = new EmployeeCalendarViewModel(_employee, _calendar, true, new EmployeeRepositoryStub()); }
public DailySummaryViewModel(Calendar calendar, ObservableCollection<EmployeeCalendarViewModel> employeeCalendars) { Summaries = new ObservableCollection<int>(); _employeeCalendars = employeeCalendars; _calendar = calendar; SetTriggersToCallCalculateSummary(); CalculateSummary(); }
public void Initialize() { _calendar = new Calendar(); _calendar.SetDate(2015, 9); _holidays = new List<Day>(); _employee = new Employee {FirstName="Joe", FamilyName = "Doe", Holidays = _holidays}; _dayViewModelObservableCollection = new EmployeeDayViewModelObservableCollection(_employee, _calendar); _sampleHoliday = new Day { Date = new DateTime(2015, 8, 15), HolidayReason = new HolidayReason() }; }
public HolidayCalendarViewModel(Employee employee, IEmployeeRepository repository) { _employeeRepository = repository; _authorizedEmployee = employee; Calendar = new Calendar(); }