예제 #1
0
 public async Task <PartnerIntegrationResponse> Handler(PartnerIntegrationRequest request)
 {
     return(await Task.FromResult(new PartnerIntegrationResponse
     {
         RequestId = request.importantParnetData,
         Issuer = "HUGE_BANK"
     }));
 }
예제 #2
0
        public async Task <List <string> > IntegrateWithAllPartners()
        {
            List <string> _result = new List <string>();

            foreach (var partner in _partners)
            {
                var request = new PartnerIntegrationRequest {
                    importantParnetData = Guid.NewGuid().ToString()
                };
                var output = await partner.Handler(request);

                _result.Add(JsonSerializer.Serialize(output));
            }
            return(_result);
        }