Exemplo n.º 1
0
        public async Task UpdateProfileBanner_ReturnsFromQueryExecutor()
        {
            // Arrange
            var controller    = CreateAccountSettingsController();
            var parameters    = new UpdateProfileBannerParameters(null);
            var request       = A.Fake <ITwitterRequest>();
            var twitterResult = A.Fake <ITwitterResult>();

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

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

            // Assert
            Assert.Equal(result, twitterResult);
        }
Exemplo n.º 2
0
 public Task <ITwitterResult> UpdateProfileBanner(IUpdateProfileBannerParameters parameters, ITwitterRequest request)
 {
     return(_accountSettingsQueryExecutor.UpdateProfileBanner(parameters, request));
 }