Пример #1
0
        public void GetSessionsDay_ReturnsAllSessionDaysFromDB()
        {
            //ARRANGE
            MockSessionRepository.Setup(x => x.GetAll()).Returns(SessionList);
            MockUofW.Setup(x => x.SessionRepository).Returns(MockSessionRepository.Object);

            var ass = new RSAssistantRole(MockUofW.Object);

            //ACT
            var sessions = ass.GetSessionsDay();

            //ASSERT
            Assert.AreEqual(SessionList().SelectMany(x => x.SessionDays).Count(), sessions.Count);
        }