Created
December 8, 2015 20:47
-
-
Save Mozu-CS/ff4ee32adf38eef5e5c6 to your computer and use it in GitHub Desktop.
Method used for retrieving test data that then gets mapped to a customer object in Mozu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private System.Data.DataTable GetAccountTestData() | |
{ | |
var tblAccount = new System.Data.DataTable(); | |
tblAccount.Columns.Add("Id"); | |
tblAccount.Columns.Add("AccountID"); | |
tblAccount.Columns.Add("UserName"); | |
tblAccount.Columns.Add("Email"); | |
tblAccount.Columns.Add("Password"); | |
tblAccount.Columns.Add("FirstName"); | |
tblAccount.Columns.Add("LastNameOrSurname"); | |
tblAccount.Columns.Add("CompanyOrOrganization"); | |
tblAccount.Columns.Add("TaxExempt"); | |
tblAccount.Columns.Add("TaxId"); | |
tblAccount.Columns.Add("AcceptsMarketing"); | |
tblAccount.Columns.Add("LocaleCode"); | |
tblAccount.Columns.Add("UserRole"); | |
tblAccount.Columns.Add("IsActive"); | |
tblAccount.Columns.Add("IsAnonymous"); | |
tblAccount.Columns.Add("Total Order Amount"); | |
tblAccount.Columns.Add("Total Orders"); | |
tblAccount.Columns.Add("Last Order Date"); | |
tblAccount.Columns.Add("Total Contacts"); | |
tblAccount.Columns.Add("LastModifiedDate"); | |
System.Data.DataRow newRow = tblAccount.NewRow(); | |
newRow["Id"] = "101"; //externalId | |
newRow["UserName"] = "vip_shopper"; | |
newRow["Email"] = "[email protected]"; | |
newRow["Password"] = "IBuyOnline2015"; | |
newRow["FirstName"] = "Jon"; | |
newRow["LastNameOrSurname"] = "Smithe"; | |
newRow["CompanyOrOrganization"] = "Main Corp"; | |
newRow["TaxExempt"] = false; | |
newRow["AcceptsMarketing"] = true; | |
newRow["LocaleCode"] = "en-US"; | |
newRow["IsActive"] = true; | |
newRow["IsAnonymous"] = false; | |
tblAccount.Rows.Add(newRow); | |
return tblAccount; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment