Exemplo n.º 1
0
        public void CourseLessonRepository_GetLessonsWithProcessInfo_ShouldSuccess()
        {
            CourseLessonRepository repository = new CourseLessonRepository();
            var result = repository.GetLessonsWithProcessInfo(10014);

            Assert.IsNotNull(result);
            Assert.IsTrue(result.Count == 1);
        }
        public void CourseLessonRespository_Insert_ShouldSuccess()
        {
            var list = new List <string> {
                "1", "2"
            };
            CourseLessonRepository r = new CourseLessonRepository();

            var result = r.Insert(
                10009,
                new List <string> {
                "1", "2"
            },
                0,
                10000);

            Assert.IsTrue(result == list.Count);
        }