public async Task CheckGettingQuestionDetailsAsync() { ApplicationDbContext db = GetDb(); var repository = new EfDeletableEntityRepository <Question>(db); var service = new QuestionsService(repository); await repository.AddAsync(this.question); await repository.SaveChangesAsync(); var questionResult = await service.GetQuestionDetailsAsync <TestQuestionModel>(this.question.Id); Assert.Equal(this.question.Id, questionResult.Id); }