public static MerchantMBE CreateMerchant(int merchantId) { MerchantMBE merchant = null; try { merchant = MongoDBContext.FindMerchantById(merchantId); MongoDBContext.DeleteMerchant(merchantId); merchant = null; } catch { } switch (merchantId) { case 1: merchant = new MerchantMBE() { merchant_id = merchantId, merchant_name = @"Tom's Deli", primary_contact = new ContactMBE() { first_name = @"Tom", last_name = @"Bruns", phone_no = GeneralConstants.TOMS_PHONE_NO, email_address = @"*****@*****.**" }, setup_options = new SetupOptionsMBE() { is_host_data_capture_enabled = true, auto_close_hh_mm = new TimeSpan(19, 0, 0), is_fast_funding_enabled = true, debit_card_no = @"1234567890123401" }, terminals = new List <TerminalMBE>() { new TerminalMBE() { terminal_id = "TID-001", terminal_type = @"610", terminal_desc = @"Checkout 1" }, new TerminalMBE() { terminal_id = "TID-002", terminal_type = @"610", terminal_desc = @"Checkout 2" }, } }; break; case 2: merchant = new MerchantMBE() { merchant_id = merchantId, merchant_name = @"Marcos Canoe Livery", primary_contact = new ContactMBE() { first_name = @"Marco", last_name = @"Fernandes", phone_no = GeneralConstants.MARCOS_PHONE_NO, email_address = @"*****@*****.**" }, setup_options = new SetupOptionsMBE() { is_host_data_capture_enabled = true, auto_close_hh_mm = new TimeSpan(19, 0, 0), is_fast_funding_enabled = true, debit_card_no = @"1234567890126702" }, terminals = new List <TerminalMBE>() { new TerminalMBE() { terminal_id = "TID-001", terminal_type = @"610", terminal_desc = @"Checkout 1" }, new TerminalMBE() { terminal_id = "TID-002", terminal_type = @"610", terminal_desc = @"Checkout 2" }, } }; break; case 3: merchant = new MerchantMBE() { merchant_id = merchantId, merchant_name = @"Dusty's Cookies", primary_contact = new ContactMBE() { first_name = @"Dusty", last_name = @"Gomez", phone_no = GeneralConstants.DUSTYS_PHONE_NO, email_address = @"*****@*****.**" }, setup_options = new SetupOptionsMBE() { is_host_data_capture_enabled = true, auto_close_hh_mm = new TimeSpan(19, 0, 0), is_fast_funding_enabled = true, debit_card_no = @"1234567890125203" }, terminals = new List <TerminalMBE>() { new TerminalMBE() { terminal_id = "TID-001", terminal_type = @"610", terminal_desc = @"Checkout 1" }, new TerminalMBE() { terminal_id = "TID-002", terminal_type = @"610", terminal_desc = @"Checkout 2" }, } }; break; case 4: merchant = new MerchantMBE() { merchant_id = merchantId, merchant_name = @"Byrne's Bar & Grill", primary_contact = new ContactMBE() { first_name = @"Josh", last_name = @"Byrne", phone_no = GeneralConstants.JOSHS_PHONE_NO, email_address = @"*****@*****.**" }, setup_options = new SetupOptionsMBE() { is_host_data_capture_enabled = true, auto_close_hh_mm = new TimeSpan(19, 0, 0), is_fast_funding_enabled = true, debit_card_no = @"1234567890122704" }, terminals = new List <TerminalMBE>() { new TerminalMBE() { terminal_id = "TID-001", terminal_type = @"610", terminal_desc = @"Checkout 1" }, new TerminalMBE() { terminal_id = "TID-002", terminal_type = @"610", terminal_desc = @"Checkout 2" }, } }; break; case 5: merchant = new MerchantMBE() { merchant_id = merchantId, merchant_name = @"Dr. Boeding", primary_contact = new ContactMBE() { first_name = @"Alex", last_name = @"Boeding", phone_no = GeneralConstants.ALEXS_PHONE_NO, email_address = @"*****@*****.**" }, setup_options = new SetupOptionsMBE() { is_host_data_capture_enabled = true, auto_close_hh_mm = new TimeSpan(19, 0, 0), is_fast_funding_enabled = true, debit_card_no = @"1234567890129905" }, terminals = new List <TerminalMBE>() { new TerminalMBE() { terminal_id = "TID-001", terminal_type = @"610", terminal_desc = @"Checkout 1" }, new TerminalMBE() { terminal_id = "TID-002", terminal_type = @"610", terminal_desc = @"Checkout 2" }, } }; break; case 6: merchant = new MerchantMBE() { merchant_id = merchantId, merchant_name = @"Pallavi's Robot Hobby Shop", primary_contact = new ContactMBE() { first_name = @"Pallavi", last_name = @"TBD", phone_no = GeneralConstants.PALLAVI_PHONE_NO, email_address = @"*****@*****.**" }, setup_options = new SetupOptionsMBE() { is_host_data_capture_enabled = true, auto_close_hh_mm = new TimeSpan(19, 0, 0), is_fast_funding_enabled = true, debit_card_no = @"1234567890121106" }, terminals = new List <TerminalMBE>() { new TerminalMBE() { terminal_id = "TID-001", terminal_type = @"610", terminal_desc = @"Checkout 1" }, new TerminalMBE() { terminal_id = "TID-002", terminal_type = @"610", terminal_desc = @"Checkout 2" }, } }; break; case 7: merchant = new MerchantMBE() { merchant_id = merchantId, merchant_name = @"Joe's Java Hut", primary_contact = new ContactMBE() { first_name = @"Joe", last_name = @"Pellar", phone_no = GeneralConstants.JOES_PHONE_NO, email_address = @"*****@*****.**" }, setup_options = new SetupOptionsMBE() { is_host_data_capture_enabled = true, auto_close_hh_mm = new TimeSpan(19, 0, 0), is_fast_funding_enabled = true, debit_card_no = @"1234567890121107" }, terminals = new List <TerminalMBE>() { new TerminalMBE() { terminal_id = "TID-001", terminal_type = @"610", terminal_desc = @"Checkout 1" }, new TerminalMBE() { terminal_id = "TID-002", terminal_type = @"610", terminal_desc = @"Checkout 2" }, } }; break; case 8: merchant = new MerchantMBE() { merchant_id = merchantId, merchant_name = @"Jake's State Farm", primary_contact = new ContactMBE() { first_name = @"Jianan", last_name = @"Hou", phone_no = GeneralConstants.JAKES_PHONE_NO, email_address = @"*****@*****.**" }, setup_options = new SetupOptionsMBE() { is_host_data_capture_enabled = true, auto_close_hh_mm = new TimeSpan(19, 0, 0), is_fast_funding_enabled = true, debit_card_no = @"1234567890122208" }, terminals = new List <TerminalMBE>() { new TerminalMBE() { terminal_id = "TID-001", terminal_type = @"610", terminal_desc = @"Checkout 1" }, new TerminalMBE() { terminal_id = "TID-002", terminal_type = @"610", terminal_desc = @"Checkout 2" }, } }; break; } ; MongoDBContext.InsertMerchant(merchant); return(merchant); }