public void WebHook_GetNewModel() { var message = new DealerMessage { CustomerKey = "TestKey", CustomerSecret = "v0VRCRMDohbRpTxyAeVYw40zlewnPem5s", Industry = "Marine", Product = new Product { Activities = new List <Activity>(), Class = new Class(), Colors = new List <Color>(), Condition = "Super Duper", Configuration = "", DataType = DataType.Catalog, Designation = "Designation", Features = new List <Feature> { new Feature { Count = 1, IsEquipment = false, IsInstalled = true, IsOptional = false, Activities = new List <Activity>(), Class = new Class(), Colors = new List <Color>(), Condition = "Super Duper", Configuration = "", DataType = DataType.Catalog, Designation = "Designation", Identifiers = new List <Identifier>(), Location = new Location(), Manufacturer = new Manufacturer(), MarketingDescriptions = new List <MarketingDescription>(), MediaContent = new List <Media>(), Model = new Domain.Webhook.Model(), Prices = new List <Price>(), ProductType = "Product Type", Source = "Source", Specifications = new List <Specification>(), Status = "Status" } }, Id = "External SkipperBud ID", Identifiers = new List <Identifier>(), Location = new Location(), Manufacturer = new Manufacturer(), MarketingDescriptions = new List <MarketingDescription>(), MediaContent = new List <Media>(), Model = new Domain.Webhook.Model(), Prices = new List <Price>(), ProductType = "Product Type", Source = "Source", Specifications = new List <Specification>(), Status = "Status" } }; var json = JsonConvert.SerializeObject(message); Console.WriteLine(json); }
public void WebHook_GetSkipperBudSample() { var product = GetSkipperBudProduct(); var message = new DealerMessage { CustomerKey = "TestKey", CustomerSecret = "v0VRCRMDohbRpTxyAeVYw40zlewnPem5s", Product = product, Industry = "Marine" }; var json = JsonConvert.SerializeObject(message); Console.WriteLine(json); }
public void WebHook_TestMessageGeneration() { var product = GetTestProduct(); var message = new DealerMessage { CustomerKey = "TestKey", CustomerSecret = "v0VRCRMDohbRpTxyAeVYw40zlewnPem5s", Industry = "Marine", Product = product }; var json = JsonConvert.SerializeObject(message); Console.WriteLine(json); }