public void NewAddress_InsertOrUpdate_Persisted() { var detail = new StudentDetailModel() { Name = "Jane Doe", Address = new AddressDetailModel() { City = "Brno", Country = "Jihomoravsky-kraj", State = "Czechia", Street = "Bozetechova 2", }, Grade = new GradeMapper().MapListModel(Seed.GradeJane), Courses = new List <StudentCourseListModel>() { new() { CourseId = Seed.IcsCourse.Id, Name = Seed.IcsCourse.Name, } } }; detail = _facadeSUT.Save(detail); Assert.NotEqual(Guid.Empty, detail.Id); var entityFromDb = _repository.GetById(detail.Id); Assert.Equal(detail, _mapper.Map(entityFromDb)); }