public async Task GivenArticleTagId_ReturnsTheCorrectTagString() { var tagsByArticleIdQuery = new TagsByArticleIdQuery { ArticleId = 1 }; var sut = new TagsByArticleIdQueryHandler(Context); var result = await sut.Handle(tagsByArticleIdQuery, default(CancellationToken)); result.Should().Be("TagNameOne,TagNameTwo"); }
public async Task GivenArticleTagId_ReturnsTheCorrectType() { var tagsByArticleIdQuery = new TagsByArticleIdQuery { ArticleId = 1 }; var sut = new TagsByArticleIdQueryHandler(Context); var result = await sut.Handle(tagsByArticleIdQuery, default(CancellationToken)); result.Should().NotBeNull(); result.Should().BeOfType <string>(); }