Exemplo n.º 1
0
        public void AddTestVoucher(System.String voucherData)
        {
            if (App.IsIntegrationTestMode == true)
            {
                Voucher voucher = JsonConvert.DeserializeObject <Voucher>(voucherData.ToString());
                TestVoucherManagementACLClient voucherManagerAclClient = App.Container.Resolve <IVoucherManagerACLClient>() as TestVoucherManagementACLClient;

                voucherManagerAclClient.Vouchers.Add(voucher);
            }
        }
Exemplo n.º 2
0
        public void AddUserDetails(System.String userData)
        {
            if (App.IsIntegrationTestMode == true)
            {
                (System.String, System.String)user = JsonConvert.DeserializeObject <(System.String, System.String)>(userData.ToString());
                TestSecurityServiceClient securityServiceClient = App.Container.Resolve <ISecurityServiceClient>() as TestSecurityServiceClient;

                securityServiceClient.CreateUserDetails(user.Item1, user.Item2);
            }
        }