public void DepartmentRepoSetup()
 {
     _dbController  = new TestDbController();
     _instance      = DepartmentRepo.GetInstance(_dbController, practitioners);
     _departmentOne = new Department("TestDepartmentOne", "TestAddressOne");
     _departmentTwo = new Department("TestDepartmentTwo", "TestAddressTwo");
 }
예제 #2
0
 public void AppointmentRepoSetup()
 {
     _dbController   = new TestDbController();
     _controller     = Controller.GetInstance();
     _departmentRepo = DepartmentRepo.GetInstance(_dbController, practitioners);
     departments     = _departmentRepo.GetDepartments();
     users           = _controller.GetUsers();
     _instance       = AppointmentRepo.GetInstance(_dbController, users, departments);
 }
예제 #3
0
        public void PractitionerRepoSetup()
        {
            _dbController = new TestDbController();
            testInstance  = PractitionerRepo.GetInstance(_dbController);


            testPractitionerOne = new Practitioner(DateTime.Today.AddHours(9), TimeSpan.FromHours(12), "pracNameOne");
            testPractitionerTwo = new Practitioner(DateTime.Today.AddHours(9), TimeSpan.FromHours(12), "pracNameTwo");

            testInstance.AddPractitioner(testPractitionerOne);
            testInstance.AddPractitioner(testPractitionerTwo);
        }