public async Task DestroyRetweet_ReturnsQueryExecutorResultAsync() { // Arrange var controller = CreateTweetController(); var parameters = new DestroyRetweetParameters(42); var request = A.Fake <ITwitterRequest>(); var expectedResult = A.Fake <ITwitterResult <ITweetDTO> >(); A.CallTo(() => _fakeTweetQueryExecutor.DestroyRetweetAsync(parameters, request)).Returns(expectedResult); // Act var result = await controller.DestroyRetweetAsync(parameters, request); // Assert Assert.Equal(result, expectedResult); }
// Retweets - Destroy public Task <ITwitterResult <ITweetDTO> > DestroyRetweetAsync(IDestroyRetweetParameters parameters, ITwitterRequest request) { return(_tweetQueryExecutor.DestroyRetweetAsync(parameters, request)); }