public async Task CommentShouldReturnCorrectResults() { // Arrange var photoService = new PhotoService(this.db); // Act var result = await photoService.Comment(1, "comment", "1"); // Assert result .Should() .BeOfType <List <CommentServiceModel> >(); result.Should() .Match(r => r.ElementAt(0).Content == "comment" && r.ElementAt(0).Author.Name == "pesho") .And .HaveCount(1); }