public async Task CreateNew_InsertOneLecture_ReturnLectureId() { //Arrange var teacherService = new TeacherService(context, context); var teachers = await teacherService.GetAll(); var teacherId = teachers[teachers.Count - 1].Id; var subjectService = new SubjectService(context, context); var subjects = await subjectService.GetAllSubjects(); var subjectId = subjects[subjects.Count - 1].Id; LectureCreateModel model = new LectureCreateModel() { Name = "Course .NET", Weekday = "Wednesday", StartHour = 8, EndHour = 10, HalfYear = "A" }; //Act var result = await lectureService.CreateNew(teacherId, subjectId, model); //Assert Assert.IsInstanceOfType(result, typeof(System.Guid)); }