//[ExpectedException( // ExpectedException = typeof(RestfulServiceException), // ExpectedMessage = @"{""status"":""terminal_error"",""message"":""One or more errors occurred.""}" //)] public async Task Send_DocuSign_Envelope_FollowUp_Configuration_NoAuth() { var configureUrl = GetTerminalConfigureUrl(); var dataDTO = await HealthMonitor_FixtureData.Send_DocuSign_Envelope_v1_Example_Fr8DataDTO(this); var responseActionDTO = await HttpPostAsync <Fr8DataDTO, ActivityDTO>(configureUrl, dataDTO); var storage = Crate.GetStorage(responseActionDTO); SendDocuSignEnvelope_SelectFirstTemplate(storage); using (var crateStorage = Crate.GetUpdatableStorage(dataDTO.ActivityDTO)) { crateStorage.Replace(storage); } dataDTO.ActivityDTO.AuthToken = null; var response = await HttpPostAsync <Fr8DataDTO, ActivityDTO>(configureUrl, dataDTO); Assert.NotNull(response); Assert.NotNull(response.CrateStorage); Assert.NotNull(response.CrateStorage.Crates); Assert.True(response.CrateStorage.Crates.Any(x => x.ManifestType == "Standard Authentication")); }
private async Task <ActivityDTO> ConfigureInitial() { var configureUrl = GetTerminalConfigureUrl(); var requestActionDTO = await HealthMonitor_FixtureData.Send_DocuSign_Envelope_v1_Example_Fr8DataDTO(this); var responseActionDTO = await HttpPostAsync <Fr8DataDTO, ActivityDTO>(configureUrl, requestActionDTO); return(responseActionDTO); }
public async Task Send_DocuSign_Envelope_Initial_Configuration_NoAuth() { var configureUrl = GetTerminalConfigureUrl(); var dataDTO = await HealthMonitor_FixtureData.Send_DocuSign_Envelope_v1_Example_Fr8DataDTO(this); dataDTO.ActivityDTO.AuthToken = null; var response = await HttpPostAsync <Fr8DataDTO, ActivityDTO>( configureUrl, dataDTO ); Assert.NotNull(response); Assert.NotNull(response.CrateStorage); Assert.NotNull(response.CrateStorage.Crates); Assert.True(response.CrateStorage.Crates.Any(x => x.ManifestType == "Standard Authentication")); }
private async Task <ActivityDTO> ConfigureFollowUp() { var configureUrl = GetTerminalConfigureUrl(); var dataDTO = await HealthMonitor_FixtureData.Send_DocuSign_Envelope_v1_Example_Fr8DataDTO(this); var responseActionDTO = await HttpPostAsync <Fr8DataDTO, ActivityDTO>(configureUrl, dataDTO); var storage = Crate.FromDto(responseActionDTO.CrateStorage); SendDocuSignEnvelope_SelectFirstTemplate(storage); using (var crateStorage = Crate.GetUpdatableStorage(dataDTO.ActivityDTO)) { crateStorage.Replace(storage); } return(await HttpPostAsync <Fr8DataDTO, ActivityDTO>(configureUrl, dataDTO)); }
public async Task Send_DocuSign_Envelope_Deactivate_Returns_ActivityDTO() { //Arrange var configureUrl = GetTerminalDeactivateUrl(); HealthMonitor_FixtureData fixture = new HealthMonitor_FixtureData(); var requestActionDTO = await HealthMonitor_FixtureData.Send_DocuSign_Envelope_v1_Example_Fr8DataDTO(this); //Act var responseActionDTO = await HttpPostAsync <Fr8DataDTO, ActivityDTO>( configureUrl, requestActionDTO ); //Assert Assert.IsNotNull(responseActionDTO); Assert.IsNotNull(Crate.FromDto(responseActionDTO.CrateStorage)); }
//[ExpectedException( // ExpectedException = typeof(RestfulServiceException), // ExpectedMessage = @"{""status"":""terminal_error"",""message"":""No auth token provided.""}" //)] public async Task Send_DocuSign_Envelope_Run_NoAuth() { var runUrl = GetTerminalRunUrl(); var configureUrl = GetTerminalConfigureUrl(); var dataDTO = await HealthMonitor_FixtureData.Send_DocuSign_Envelope_v1_Example_Fr8DataDTO(this); var responseActionDTO = await HttpPostAsync <Fr8DataDTO, ActivityDTO>(configureUrl, dataDTO); var storage = Crate.GetStorage(responseActionDTO); // SendDocuSignEnvelope_SetSpecificRecipient(storage); using (var crateStorage = Crate.GetUpdatableStorage(dataDTO.ActivityDTO)) { crateStorage.Replace(storage); } dataDTO.ActivityDTO.AuthToken = null; AddOperationalStateCrate(dataDTO, new OperationalStateCM()); var payload = await HttpPostAsync <Fr8DataDTO, PayloadDTO>(runUrl, dataDTO); CheckIfPayloadHasNeedsAuthenticationError(payload); }