private async Task ShouldCreateSepaSource()
        {
            var sepaSourceRequest  = new SepaSourceRequest();
            var sepaSourceResponse = new SepaSourceResponse();

            _apiClient.Setup(apiClient =>
                             apiClient.Post <SepaSourceResponse>("sources", _authorization, sepaSourceRequest,
                                                                 CancellationToken.None, null))
            .ReturnsAsync(() => sepaSourceResponse);

            ISourcesClient client = new SourcesClient(_apiClient.Object, _configuration.Object);

            var response = await client.CreateSepaSource(sepaSourceRequest, CancellationToken.None);

            response.ShouldNotBeNull();
        }
Пример #2
0
 public Task <SepaSourceResponse> CreateSepaSource(SepaSourceRequest sepaSourceRequest,
                                                   CancellationToken cancellationToken = default)
 {
     return(ApiClient.Post <SepaSourceResponse>(SourcesPath, SdkAuthorization(), sepaSourceRequest,
                                                cancellationToken));
 }