コード例 #1
0
 public void Initialize()
 {
     _employees = new List<Employee>
     {
         new Employee(),
         new Employee(),
         new Employee()
     };
     _employeeRepository = new EmployeeRepositoryStub(_employees);
     _generator = new EmployeeCalendarGenerator(_employeeRepository, new Calendar(), new MainViewModel());
     SettingsHelper.SaveConnectionString("Data Source=YOGER-SUPERMAN\\SQLEXPRESS;Initial Catalog=HolidayCalendar;Integrated Security=True;Connect Timeout=5");
 }
コード例 #2
0
 private void SetupEmployees()
 {
     var calendarGenerator = new EmployeeCalendarGenerator(_employeeRepository, Calendar, MainViewModel);
     EmployeeCalendars = new ObservableCollection<EmployeeCalendarViewModel>(calendarGenerator.GetCalendars(_authorizedEmployee));
     MarkRowsAsDistinct();
 }