private void UpdateTestVoucherData(String voucherData) { voucherData = StringCompression.Decompress(voucherData); List <Voucher> vouchers = JsonConvert.DeserializeObject <List <Voucher> >(voucherData); if (vouchers.Any()) { TestVoucherManagementACLClient voucherManagementACLClient = App.Container.Resolve <IVoucherManagerACLClient>() as TestVoucherManagementACLClient; foreach (Voucher voucher in vouchers) { voucherManagementACLClient.CreateTestVoucher(voucher.VoucherCode, voucher.Value, voucher.RecipientEmail, voucher.RecipientMobile); } } }
private void UpdateTestUserData(String userData) { userData = StringCompression.Decompress(userData); List <(String, String)> users = JsonConvert.DeserializeObject <List <(String, String)> >(userData); if (users.Any()) { TestSecurityServiceClient securityServiceClient = App.Container.Resolve <ISecurityServiceClient>() as TestSecurityServiceClient; foreach (var user in users) { securityServiceClient.CreateUserDetails(user.Item1, user.Item2); } } }