private async Task <ActivityDTO> ConfigureInitial() { var configureUrl = GetTerminalConfigureUrl(); var dataDTO = HealthMonitor_FixtureData .GetDataFromFr8Warehouse_v1_InitialConfiguration_Fr8DataDTO(); var activityDTO = await HttpPostAsync <Fr8DataDTO, ActivityDTO>( configureUrl, dataDTO ); Assert.IsNotNull(activityDTO, "ActivityDTO is null"); Assert.IsNotNull(activityDTO.CrateStorage, "ActivityDTO.CrateStorage is null"); var crateStorage = Crate.FromDto(activityDTO.CrateStorage); Assert.AreEqual(2, crateStorage.Count, "Invalid CrateStorage structure"); Assert.AreEqual(1, crateStorage.CratesOfType <StandardConfigurationControlsCM>().Count(), "Invalid CrateStorage structure"); Assert.AreEqual(1, crateStorage.CratesOfType <CrateDescriptionCM>().Count(), "Invalid CrateStorage structure"); var controls = crateStorage.CrateContentsOfType <StandardConfigurationControlsCM>().First(); Assert.AreEqual(3, controls.Controls.Count, "Invalid ConfigurationControls structure"); Assert.AreEqual("AvailableObjects", controls.Controls[0].Name, "Invalid ConfigurationControls structure"); Assert.AreEqual("SelectObjectLabel", controls.Controls[1].Name, "Invalid ConfigurationControls structure"); Assert.AreEqual(false, controls.Controls[1].IsHidden, "Invalid ConfigurationControls structure"); Assert.AreEqual("QueryBuilder", controls.Controls[2].Name, "Invalid ConfigurationControls structure"); Assert.AreEqual(true, controls.Controls[2].IsHidden, "Invalid ConfigurationControls structure"); var crateDescription = crateStorage.CrateContentsOfType <CrateDescriptionCM>().First(); Assert.AreEqual(1, crateDescription.CrateDescriptions.Count, "Invalid CrateDescription structure"); Assert.AreEqual("Table Generated by Get Data From Fr8 Warehouse", crateDescription.CrateDescriptions[0].Label, "Invalid CrateDescription structure"); Assert.AreEqual("Standard Table Data", crateDescription.CrateDescriptions[0].ManifestType, "Invalid CrateDescription structure"); return(activityDTO); }