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