· 6 years ago · Aug 09, 2019, 12:08 PM
1$scope = $('div[ng-controller="applyController"]').scope()
2
3var di = new Date().format('{dd}{MM}{yy}{hh}{mm}{ss}');
4
5// Wizard 1
6
7
8$scope.Variables.orgName = "BOP TEST AS " + di
9$scope.Variables.OrgType = "Corporation"
10$scope.Variables.firstName = "Ameet test bop " + di
11$scope.Variables.lastName = "Shahani last bop " + di
12$scope.Variables.address = "508 W Stadium Ave"
13$scope.Variables.city = "West Lafayette"
14$scope.Variables.state = "IN"
15$scope.Variables.zipcode = "47906"
16$scope.Variables.County = "Tippecanoe"
17$scope.Variables.primaryPhone= "1231231231"
18$scope.Variables.Email = "testscio.ameet+ah" + di + "@gmail.com";
19$scope.Variables.FeinNumber = "246810";
20$scope.Variables.WebsiteURL = "www.site.org";
21$scope.Variables.AddBillingAddress = "Yes";
22
23
24
25
26
27// Wizard 2
28
29
30$scope.Variables.OperationCategory = "Audiologist";
31$scope.Variables.GLLimit = "$1,000,000/$1,000,000";
32$scope.Variables.EffDate = "07/30/2019";
33$scope.Variables.AnnualRevenue = "225000";
34$scope.Variables.AddHNOA = "No";
35
36
37
38// Wizard 3
39
40$scope.Variables.PrimaryLocationPropertyValue = 50000;
41$scope.Variables.PropertyDeductible = "$1,000";
42$scope.Variables.BusinessownersEnhancementDeluxe = "No";
43$scope.Variables.AddAdditionalGLLocation = "No";
44
45$scope.Variables.PrimaryLocationHomeResidence = "No";
46$scope.Variables.LeasedOrRented = "Yes";
47
48
49
50// Wizard 4
51$scope.Variables.AdditionalInsuredRequired = "No";
52$scope.Variables.EquipmentBreakdown = "No";
53
54
55
56// Wizard 4
57$scope.Variables.QualificationQuestionOne = "No";
58
59$scope.Variables.DescriptionOfOperations = "Operations are described";
60$scope.Variables.StoringProducts = "No";
61$scope.Variables.HostSpecialEvents = "No";
62$scope.Variables.Franchisor = "No";
63$scope.Variables.SmokeDetector = "Yes";
64$scope.Variables.ManufactureProducts = "No";
65$scope.Variables.ContractorManagingProperties = "No";
66$scope.Variables.FoodDistributor = "No";
67$scope.Variables.LiquorDistributor = "No";
68$scope.Variables.MedicalServices = "No";
69$scope.Variables.AdvertisingServices = "No";
70$scope.Variables.CancelledNonRenewed = "No";
71$scope.Variables.Bankruptcies = "No";
72$scope.Variables.PriorLosses = "No";
73$scope.Variables.RequestHigherLimits = "No";
74
75// Payment variables
76$scope.Purchase.CardType = "VISA";
77$scope.Purchase.NumberCard = "4111111111111111";
78$scope.Purchase.CardName = "Ameet BOP " + di;
79$scope.Purchase.Month = "12";
80$scope.Purchase.Year = 2020;
81$scope.Purchase.SecurityCode = "123";
82$scope.Purchase.ShowButton1 = true;
83$scope.Variables.EmploymentCategory = "Employed";
84
85// Validate wizards
86$.each($scope.Insurance.Wizards.findAll({ WizardTypeId: 1 }), function(wIdx, wiz){
87 wiz.ValidationStatus = "Passed";
88});
89
90answerControl.functions();
91
92$scope.$apply()