예제 #1
0
        public void ExerciseTestMethodGetAll()
        {
            var exerciseManager = new ExerciseManager(sUoW, mapper);

            sUoW.ExerciseRepo.GetAll().Returns(new List <Exercise>()
            {
                new Exercise()
                {
                    TaskName = "TestTask", CreateDateTime = DateTime.Now, UpdateDateTime = DateTime.Now, TaskTextField = "This is UnitTest task"
                }
            });
            Assert.AreEqual("TestTask", exerciseManager.GetAll().FirstOrDefault().TaskName);
        }