public DTRViewModel(DTRRepository dtrRepository, IDialogCoordinator dialogCoordinator) { SetupClock(); this.dtrRepository = dtrRepository; this.dialogCoordinator = dialogCoordinator; PropertyChanged += DTRViewModel_PropertyChanged; RefreshLogs(); }
public DTRViewModel(DTRRepository dtrRepository, IDialogCoordinator dialogCoordinator) { SetupClock(); DayLogs = new BindableCollection <DayLog>(); _dtrRepository = dtrRepository; _dialogCoordinator = dialogCoordinator; PropertyChanged += DTRViewModel_PropertyChanged; RefreshLogs(); }
public void TestMethod1() { using (var context = new BiometContext()) { context.Employees.Add(new SalariedEmployee { EmployeeNumber = "888", MonthlySalary = 30000, FirstName = "Archie" }); context.SaveChanges(); DTRRepository dTRRepository = new DTRRepository(context); dTRRepository.Get("888", DateTime.Now.Date); } }