public async Task InvalidateBearerToken_ReturnsFromQueryExecutor() { // Arrange var controller = CreateAuthController(); var request = A.Fake <ITwitterRequest>(); var expectedResult = A.Fake <ITwitterResult <InvalidateTokenResponse> >(); var parameters = new InvalidateBearerTokenParameters(); A.CallTo(() => _fakeAuthQueryExecutor.InvalidateBearerToken(parameters, request)).Returns(expectedResult); // Act var result = await controller.InvalidateBearerToken(parameters, request); // Assert Assert.Equal(result, expectedResult); }
public Task <ITwitterResult <InvalidateTokenResponse> > InvalidateBearerToken(IInvalidateBearerTokenParameters parameters, ITwitterRequest request) { return(_authQueryExecutor.InvalidateBearerToken(parameters, request)); }