Пример #1
0
 public DTRViewModel(DTRRepository dtrRepository, IDialogCoordinator dialogCoordinator)
 {
     SetupClock();
     this.dtrRepository     = dtrRepository;
     this.dialogCoordinator = dialogCoordinator;
     PropertyChanged       += DTRViewModel_PropertyChanged;
     RefreshLogs();
 }
Пример #2
0
 public DTRViewModel(DTRRepository dtrRepository, IDialogCoordinator dialogCoordinator)
 {
     SetupClock();
     DayLogs            = new BindableCollection <DayLog>();
     _dtrRepository     = dtrRepository;
     _dialogCoordinator = dialogCoordinator;
     PropertyChanged   += DTRViewModel_PropertyChanged;
     RefreshLogs();
 }
Пример #3
0
        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);
            }
        }