Exemplo n.º 1
0
        public async Task <IEnumerable <PayerWebsiteMappingValue> > GetPayerWebsiteMappingValues_With_client_and_LocationKeys(Guid clientKey, Guid clientLocationKey)
        {
            IAsyncRepository <PayerWebsiteMappingValue> payerWebsiteMappingValuesRepo = new PayerWebsiteMappingValuesAsyncRepository(_db);

            try
            {
                return(await payerWebsiteMappingValuesRepo.FindWith2GuidsAsync(clientKey, clientLocationKey));
            }
            catch (Exception)
            {
                throw;
            }
        }
        public async void Get_PayerWebsiteMappingValues_Test()
        {
            var clientKey         = new Guid("e955eb96-166a-4654-b474-9367d7a01fe2");
            var clientLocationKey = new Guid("421580b9-a564-e211-97df-000c29729dff");
            IAsyncRepository <PayerWebsiteMappingValue> payerWebsiteRepo = new PayerWebsiteMappingValuesAsyncRepository(_iAgentProdDb);
            var payerWebsiteMappingValues = await payerWebsiteRepo.FindWith2GuidsAsync(clientKey, clientLocationKey);

            foreach (var item in payerWebsiteMappingValues)
            {
                Console.WriteLine("Defualt Value: " + item.DefaultValue + " Detial Label: " + item.DetailLabel + " Primary Payer Key: " + item.Primary_PayerKey);
            }
            Assert.IsNotNull(payerWebsiteMappingValues);
        }
Exemplo n.º 3
0
        private async Task GetPayerWebsiteMappingValues(IDbConnection db)
        {
            try
            {
                var clientKey         = Guid.Parse(txtClientKey.Text);
                var clientLocationKey = Guid.Parse(txtClientLocationKey.Text);
                IAsyncRepository <PayerWebsiteMappingValue> payerWebsiteMappingValuesRepo = new PayerWebsiteMappingValuesAsyncRepository(db);
                lblStatus.Text = "Getting payer website mapping value records";
                var payerWebsiteMappingValues = await payerWebsiteMappingValuesRepo.FindWith2GuidsAsync(clientKey, clientLocationKey);

                PayerWebsiteMappingValuesToGridView(payerWebsiteMappingValues);
                lblStatus.Text = "Done";
            }
            catch (Exception)
            {
                throw;
            }
        }