public async Task GetByPostId_WithIncorrectInput_ShouldReturnZeroResult(int postId) { MapperInitializer.InitializeMapper(); var dbContext = ApplicationDbContextCreatorInMemory.InitializeContext(); await this.CreateTestComments(dbContext); var repository = new EfDeletableEntityRepository <Comment>(dbContext); var service = new CommentsService(repository); // PostId = 1 // Take = 2 // Skip = 1 var result = service.GetByPostId <CommentEditModel>(postId, 2, 1); Assert.Equal(0, result.Count(x => x.PostId == postId)); Assert.Empty(result); }