Exemple #1
0
        public async Task UpdateProfile_ReturnsFromQueryExecutor()
        {
            // Arrange
            var controller    = CreateAccountSettingsController();
            var parameters    = new UpdateProfileParameters();
            var request       = A.Fake <ITwitterRequest>();
            var twitterResult = A.Fake <ITwitterResult <IUserDTO> >();

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

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

            // Assert
            Assert.Equal(result, twitterResult);
        }
Exemple #2
0
 public Task <ITwitterResult <IUserDTO> > UpdateProfile(IUpdateProfileParameters parameters, ITwitterRequest request)
 {
     return(_accountSettingsQueryExecutor.UpdateProfile(parameters, request));
 }