Esempio n. 1
0
        public async Task UpdateAccountSettings_ReturnsFromQueryExecutor()
        {
            // Arrange
            var controller    = CreateAccountSettingsController();
            var parameters    = new UpdateAccountSettingsParameters();
            var request       = A.Fake <ITwitterRequest>();
            var twitterResult = A.Fake <ITwitterResult <IAccountSettingsDTO> >();

            A.CallTo(() => _fakeAccountSettingsQueryExecutor.UpdateAccountSettings(parameters, request)).Returns(twitterResult);

            // Act
            var result = await controller.UpdateAccountSettings(parameters, request);

            // Assert
            Assert.Equal(result, twitterResult);
        }
Esempio n. 2
0
 public Task <ITwitterResult <IAccountSettingsDTO> > UpdateAccountSettings(IUpdateAccountSettingsParameters parameters, ITwitterRequest request)
 {
     return(_accountSettingsQueryExecutor.UpdateAccountSettings(parameters, request));
 }