public async Task Extract_Data_From_Envelopes_Deactivate_Returns_ActivityDTO() { //Arrange var configureUrl = GetTerminalDeactivateUrl(); HealthMonitor_FixtureData fixture = new HealthMonitor_FixtureData(); var requestDataDTO = await HealthMonitor_FixtureData.Extract_Data_From_Envelopes_v1_InitialConfiguration_Fr8DataDTO(this); AddHubActivityTemplate(requestDataDTO); //Act var responseActionDTO = await HttpPostAsync <Fr8DataDTO, ActivityDTO>( configureUrl, requestDataDTO ); //Assert Assert.IsNotNull(responseActionDTO); Assert.IsNotNull(Crate.FromDto(responseActionDTO.CrateStorage)); }
public async Task Extract_Data_From_Envelopes_Initial_Configuration_Check_Crate_Structure() { var configureUrl = GetTerminalConfigureUrl(); var requestDataDTO = await HealthMonitor_FixtureData.Extract_Data_From_Envelopes_v1_InitialConfiguration_Fr8DataDTO(this); AddHubActivityTemplate(requestDataDTO); var responseActionDTO = await HttpPostAsync <Fr8DataDTO, ActivityDTO>( configureUrl, requestDataDTO ); Assert.NotNull(responseActionDTO); Assert.NotNull(responseActionDTO.CrateStorage); var crateStorage = Crate.FromDto(responseActionDTO.CrateStorage); AssertCrateTypes(crateStorage); AssertControls(crateStorage.CrateContentsOfType <StandardConfigurationControlsCM>().Single()); }