Пример #1
0
        public async Task RemoveProfileBanner_ReturnsFromQueryExecutor()
        {
            // Arrange
            var controller    = CreateAccountSettingsController();
            var parameters    = new RemoveProfileBannerParameters();
            var request       = A.Fake <ITwitterRequest>();
            var twitterResult = A.Fake <ITwitterResult>();

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

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

            // Assert
            Assert.Equal(result, twitterResult);
        }
Пример #2
0
 public Task <ITwitterResult> RemoveProfileBanner(IRemoveProfileBannerParameters parameters, ITwitterRequest request)
 {
     return(_accountSettingsQueryExecutor.RemoveProfileBanner(parameters, request));
 }