public async Task Create_Progression(User user, Subject subject, Concept concept) { var context = TestSetup.SetupContext(); var progression = new Progression { UserId = user.Id, User = user, SubjectId = subject.Id, Subject = subject, ConceptId = concept.Id, Concept = concept }; await context.Users.AddAsync(user); await context.Subjects.AddAsync(subject); await context.Concepts.AddAsync(concept); await context.SaveChangesAsync(); var service = new ProgressionService(context); var result = await service.Create(user, subject, concept); var storedResult = context.Progressions.FirstOrDefault(); result.Should().BeTrue(); storedResult.Should().NotBeNull().And.BeEquivalentTo(progression, TestSetup.IgnoreTimestamps <Progression>()); }