public async Task CheckGettingNewQuestionForStylistAsync() { ApplicationDbContext db = GetDb(); var repository = new EfDeletableEntityRepository <Question>(db); var service = new QuestionsService(repository); await this.PrepareQuestionAsync(service); await this.PrepareQuestionAsync(service); var questions = await service.GetAllNewQuestionsForStylistAsync <TestQuestionModel>(this.stylist.Id); var questionCount = await service.GetNewQuestionsCountAsync(this.stylist.Id); Assert.Equal(2, questions.Count()); Assert.Equal(2, questionCount); }