public StandardPickerData GetDefaultStandardPickerData() { var data1 = new SelectedStandardsGroupData(); data1.GetTestDataFromResxResource("UITests.Data.Assess.Standards.StandardPickerResource", "default_" + this.TestConfiguration.ApplicationName, 0); var data1A = new SelectedStandardsGroupData(); data1A.GetTestDataFromResxResource("UITests.Data.Assess.Standards.SelectedStandardsGroupResource", "default_" + this.TestConfiguration.ApplicationName, 0); data1.Children = new List <SelectedStandardsGroupData> { data1A }; var standardPickerData = new StandardPickerData(); standardPickerData.GetTestDataFromResxResource("UITests.Data.Assess.Standards.StandardPickerResource", "default_" + this.TestConfiguration.ApplicationName, 0); standardPickerData.SelectedStandardsGroupData = data1; return(standardPickerData); }
private EditRubricData getRubricData(RubricGroupType rubricGroupType) { ItemTypeData itemTypeData = new ItemTypeData(); itemTypeData.GetTestDataFromResxResource("UITests.Data.Assess.Rubric.RubricResource", "default_" + this.TestConfiguration.ApplicationName, 0); itemTypeData.Name = string.Format("Web Test Rubric: {0}", DateTime.Now.ToString("yyMMddMMssfff")); RubricColumnData rubricColumnData = new RubricColumnData(); rubricColumnData.GetTestDataFromResxResource("UITests.Data.Assess.Rubric.RubricResource", "default_" + this.TestConfiguration.ApplicationName, 0); RubricDescriptionData rubricDescriptionData = new RubricDescriptionData(); rubricDescriptionData.GetTestDataFromResxResource("UITests.Data.Assess.Rubric.RubricResource", "default_" + this.TestConfiguration.ApplicationName, 0); RubricRowData rubricRowData = new RubricRowData(); rubricRowData.GetTestDataFromResxResource("UITests.Data.Assess.Rubric.RubricResource", "default_" + this.TestConfiguration.ApplicationName, 0); rubricRowData.Descriptions = new List <RubricDescriptionData>(); for (int i = 0; i < 3; i++) { rubricRowData.Descriptions.Add(rubricDescriptionData); } var standardPickerData = new StandardPickerData(); standardPickerData.GetTestDataFromResxResource("UITests.Data.Assess.Standards.StandardPickerResource", "default_" + this.TestConfiguration.ApplicationName, 0); var parentData = new SelectedStandardsGroupData(); parentData.GetTestDataFromResxResource("UITests.Data.Assess.Standards.StandardPickerResource", "default_" + this.TestConfiguration.ApplicationName, 0); var childData = new SelectedStandardsGroupData(); childData.GetTestDataFromResxResource("UITests.Data.Assess.Standards.SelectedStandardsGroupResource", "default_" + this.TestConfiguration.ApplicationName, 0); childData.Parent = parentData; parentData.Children = new List <SelectedStandardsGroupData> { childData }; standardPickerData.SelectedStandardsGroupData = parentData; RubricGroupData rubricGroupData = new RubricGroupData(); rubricGroupData.GetTestDataFromResxResource("UITests.Data.Assess.Rubric.RubricResource", "default_" + this.TestConfiguration.ApplicationName, 0); rubricGroupData.Row = new List <RubricRowData>(); rubricGroupData.Row.Add(rubricRowData); rubricGroupData.Row.Add(rubricRowData); rubricGroupData.Standard = new List <StandardPickerData>(); if (rubricGroupType == RubricGroupType.GroupOfThese) { rubricGroupData.Standard.Add(standardPickerData); } else { rubricGroupData.Standard.Add(standardPickerData); rubricGroupData.Standard.Add(standardPickerData); } EditRubricData data = new EditRubricData(); data.RubricProperties = itemTypeData; data.Scale = "Level"; data.RubricLevels = new List <RubricGroupData>(); data.RubricLevels.Add(rubricGroupData); data.RubricColumns = new List <RubricColumnData>(); data.RubricColumns.Add(rubricColumnData); data.RubricColumns.Add(rubricColumnData); data.RubricColumns.Add(rubricColumnData); return(data); }