public void AcsEndpointTest(string propertyName, InputType inputType) { ValidationTestUtility.PerformUrlSegmentValidationTest(AuthApiConnection.GetConnectionForCurrentTest(), CommonConstants.AcsUrl, propertyName, inputType, new Dictionary <string, string> { ["companyId"] = AuthenticationInfoProvider.Current.DefaultPartition }, Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes("TEST STRING IN BASE 64 FORMAT"))); }
public void CoreSettingUpdateWithUrlTest(string propertyName, InputType inputType) { ValidationTestUtility.PerformUrlValidationTest(_testConnection, propertyName, inputType, GenerateSettingUpdateRequest(), new Dictionary <string, string> { ["companyId"] = AuthenticationInfoProvider.Current.DefaultPartition }); }
public void TmpCompanyGetTest(string propertyName, InputType inputType) { ValidationTestUtility.PerformUrlSegmentValidationTest(_testConnection, CommonConstants.TempCompInfoUrl, propertyName, inputType, new Dictionary <string, string> { ["companyId"] = AuthenticationInfoProvider.Current.DefaultPartition }); }
public void UISettingGetTest(string propertyName, InputType inputType) { ValidationTestUtility.PerformUrlValidationTest(AuthApiConnection.GetConnectionForCurrentTest(), CommonConstants.SettingCoreApiUrl, propertyName, inputType, new Dictionary <string, string> { ["companyId"] = AuthenticationInfoProvider.Current.DefaultPartition }); }
public void UISettingUpdateWithUrlTest(string propertyName, InputType inputType) { ValidationTestUtility.PerformUrlValidationTest(AuthApiConnection.GetConnectionForCurrentTest(), propertyName, inputType, GenerateSettingUpdateRequest(), new Dictionary <string, string> { ["companyId"] = AuthenticationInfoProvider.Current.DefaultPartition }, CommonConstants.SettingUIUrl); }
public void RefreshTokenCredsTest(string propertyName, ParameterType parameterType, InputType inputType) { var getTokenReqeust = GenerateGetTokenCredRequest(); var response = (new DefaultManager(_testConnection)).Send <GetTokenResponse>(getTokenReqeust); PrAssume.That(response, PrIs.SuccessfulResponse(), "Could not get token to refresh. Actual response code is " + response.HttpStatusCode); ValidationTestUtility.PerformJsonValidationTest(_testConnection, propertyName, parameterType, inputType, new RefreshTokenRequest { ExpiresIn = 600, InvalidAfter = 10800, Token = response.Result.Token }, null); }
public void GetTokenSamlTest(string propertyName, ParameterType parameterType, InputType inputType) { ValidationTestUtility.PerformJsonValidationTest(_testConnection, propertyName, parameterType, inputType, new GetTokenRequest { ExpiresIn = 600, InvalidAfter = 10800, ExtPayload = new { sessionKey = "qwer123" }, Method = "saml", Service = "HRBC", Credentials = new GetTokenRequest.CredentialsType { CompanyId = Convert.ToInt32(AuthenticationInfoProvider.Current.DefaultPartition), UserLoginId = AuthenticationInfoProvider.Current.DefaultUserLogin } }, null); }
public void CompanyLoginIdLoginTest(string propertyName, ParameterType parameterType, InputType inputType) { ValidationTestUtility.PerformJsonValidationTest(_testConnection, propertyName, parameterType, inputType, new LoginRequest { CompanyLoginId = AuthenticationInfoProvider.Current.DefaultCompanyName }, null); }
public void GetTokenCredsTest(string propertyName, ParameterType parameterType, InputType inputType) { ValidationTestUtility.PerformJsonValidationTest(_testConnection, propertyName, parameterType, inputType, GenerateGetTokenCredRequest(), null); }
public void CoreSettingUpdateTest(string propertyName, ParameterType parameterType, InputType inputType) { var creds = AuthenticationInfoProvider.GetAuthSpecForCurrentTest(); ValidationTestUtility.PerformJsonValidationTest(_testConnection, propertyName, parameterType, inputType, GenerateSettingUpdateRequest(), creds); }
public void UISettingUpdateTest(string propertyName, ParameterType parameterType, InputType inputType) { var creds = AuthenticationInfoProvider.GetAuthSpecForCurrentTest(); ValidationTestUtility.PerformJsonValidationTest(AuthApiConnection.GetConnectionForCurrentTest(), propertyName, parameterType, inputType, GenerateSettingUpdateRequest(), creds, CommonConstants.SettingUIUrl); }