예제 #1
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);
        }
예제 #2
0
        public void CreationTest()
        {
            PractitionerRepo compareTestRepo = PractitionerRepo.GetInstance(_dbController);

            Assert.AreEqual(testInstance, compareTestRepo);
        }