public async Task ReturnFeedback_WhenFeedbackIsFound() { var id = 1; var paginatedListMocked = new Mock <IPaginatedList <FeedbackDTO> >(); var dateTimeWrapperMocked = new Mock <IDateTimeWrapper>(); var censorMocked = new Mock <ICensor>(); FeedbackTestUtils.ResetAutoMapper(); FeedbackTestUtils.InitializeAutoMapper(); FeedbackTestUtils.GetContextWithFeedbackId(nameof(ReturnFeedback_WhenFeedbackIsFound), id); using (var assertContext = new AlphaHotelDbContext(FeedbackTestUtils.GetOptions(nameof(ReturnFeedback_WhenFeedbackIsFound)))) { var feedbackService = new FeedbackService(assertContext, paginatedListMocked.Object, dateTimeWrapperMocked.Object, censorMocked.Object); var feedback = await feedbackService.FindFeedback(id); Assert.AreEqual(id, feedback.Id); } }