Exemple #1
0
        public async Task return_an_existing_course()
        {
            var course = CourseMother.Random();

            await Repository.Save(course);

            Assert.Equal(JsonConvert.SerializeObject(course), JsonConvert.SerializeObject(await Repository.Search(course.Id)));
        }
Exemple #2
0
 public async Task save_a_course()
 {
     var course = CourseMother.Random();
     await Repository.Save(course);
 }