public async Task GetAccountSettings_ReturnsFromQueryExecutorAsync() { // Arrange var controller = CreateAccountSettingsController(); var parameters = new GetAccountSettingsParameters(); var request = A.Fake <ITwitterRequest>(); var twitterResult = A.Fake <ITwitterResult <IAccountSettingsDTO> >(); A.CallTo(() => _fakeAccountSettingsQueryExecutor.GetAccountSettingsAsync(parameters, request)).Returns(twitterResult); // Act var result = await controller.GetAccountSettingsAsync(parameters, request); // Assert Assert.Equal(result, twitterResult); }
public Task <ITwitterResult <IAccountSettingsDTO> > GetAccountSettingsAsync(IGetAccountSettingsParameters parameters, ITwitterRequest request) { return(_accountSettingsQueryExecutor.GetAccountSettingsAsync(parameters, request)); }