public async Task ArticleRatingsEmpty_ReturnFalse() { var query = new ArticleRatedBeforeQuery { ArticleId = 2, User = GetFakeClaimsPrincipal() }; var result = _sut.ExposedHandle(query); result.Should().Be(false); }
public void UserRatedBefore_ReturnTrue() { var query = new ArticleRatedBeforeQuery { ArticleId = 1, User = GetFakeClaimsPrincipal() }; var result = _sut.ExposedHandle(query); result.Should().Be(true); }
public bool ExposedHandle(ArticleRatedBeforeQuery message) { return(base.Handle(message)); }