public void Then_The_Post_Url_Is_Correctly_Built(WithdrawRequest withdrawRequest)
        {
            var actual = new PostWithdrawApplicationRequest(withdrawRequest);

            actual.PostUrl.Should().Be($"withdrawals");
            actual.Data.Should().BeEquivalentTo(withdrawRequest);
        }
        public async Task <Unit> Handle(WithdrawCommand request, CancellationToken cancellationToken)
        {
            var postRequest = new PostWithdrawApplicationRequest(request.WithdrawRequest);

            await _client.Post(postRequest);

            return(Unit.Value);
        }
예제 #3
0
 public void GivenTheCallerWantsToWithdrawAnApprenticeshipApplication()
 {
     _withdrawRequest = new PostWithdrawApplicationRequest(
         new WithdrawRequest
     {
         WithdrawalType       = WithdrawalType.Employer,
         AccountLegalEntityId = _fixture.Create <long>(),
         ULN            = _fixture.Create <long>(),
         ServiceRequest = _fixture.Create <ServiceRequest>()
     });
 }