public async Task <PartnerIntegrationResponse> Handler(PartnerIntegrationRequest request) { return(await Task.FromResult(new PartnerIntegrationResponse { RequestId = request.importantParnetData, Issuer = "HUGE_BANK" })); }
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); }