public async Task UpdateProfileImage_ReturnsFromQueryExecutor() { // Arrange var controller = CreateAccountSettingsController(); var parameters = new UpdateProfileImageParameters(null); var request = A.Fake <ITwitterRequest>(); var twitterResult = A.Fake <ITwitterResult <IUserDTO> >(); A.CallTo(() => _fakeAccountSettingsQueryExecutor.UpdateProfileImage(parameters, request)).Returns(twitterResult); // Act var result = await controller.UpdateProfileImage(parameters, request); // Assert Assert.Equal(result, twitterResult); }
public Task <ITwitterResult <IUserDTO> > UpdateProfileImage(IUpdateProfileImageParameters parameters, ITwitterRequest request) { return(_accountSettingsQueryExecutor.UpdateProfileImage(parameters, request)); }