public void UpdateTestMethod(SessionShedule ses)
        {
            //arrange
            SessionSheduleCreator stCreator = (SessionSheduleCreator)factory.GetSessionSheduleCreator();
            //act
            bool isUpdated = stCreator.Update(ses);

            //assert
            Assert.IsTrue(isUpdated);
        }
        public void DeleteTestMethod(int id)
        {
            //arrange
            SessionSheduleCreator stCreator = (SessionSheduleCreator)factory.GetSessionSheduleCreator();
            //act
            bool isDeleted = stCreator.Delete(id);

            //assert
            Assert.IsTrue(isDeleted);
        }
        public void ReadTestMethod()
        {
            //arrange
            SessionShedule expected = new SessionShedule(1, 1, new DateTime(2019, 11, 10), 1);
            //act
            SessionSheduleCreator stCreator = (SessionSheduleCreator)factory.GetSessionSheduleCreator();
            SessionShedule        actual    = stCreator.Read(1);

            //assert
            Assert.AreEqual(expected, actual);
        }
        public void GetAllTestMethod()
        {
            //arrange
            SessionSheduleCreator stCreator = (SessionSheduleCreator)factory.GetSessionSheduleCreator();
            List <SessionShedule> expected  = new List <SessionShedule> {
                new SessionShedule(1, 1, new DateTime(2019, 11, 10), 1), new SessionShedule(2, 2, new DateTime(2019, 11, 15), 1),
                new SessionShedule(3, 3, new DateTime(2020, 7, 10), 1), new SessionShedule(4, 4, new DateTime(2020, 7, 14), 1),
                new SessionShedule(5, 1, new DateTime(2019, 11, 13), 1), new SessionShedule(6, 2, new DateTime(2019, 11, 14), 1),
                new SessionShedule(7, 3, new DateTime(2020, 7, 15), 1), new SessionShedule(8, 4, new DateTime(2020, 7, 16), 2)
            };
            //act
            List <SessionShedule> actual = stCreator.GetAll().ToList();

            //assert
            CollectionAssert.AreEqual(expected, actual);
        }