public void GetCredentialsFailurePasswordTest() { User user = new User("*****@*****.**", "mypassword"); BvgConnectorMock connector = GetConnector(CredentialsDataProvider.GetCredentialsWrongPasswordResponse()); user = connector.GetCredentials(user); }
public void GetCredentialsFailurePasswordTest() { var headers = new Dictionary <String, String>(); string authorization = "TODOPAGO ABCDEF1234567890"; headers.Add("Authorization", authorization); User user = new User("*****@*****.**", "mypassword"); TodoPagoMockConnector restConnector = new TodoPagoMockConnector("https://developers.todopago.com.ar/t/1.1/api/", headers); restConnector.SetRequestResponse(CredentialsDataProvider.GetCredentialsWrongPasswordResponse()); TPConnectorMock connector = new TPConnectorMock(TPConnector.developerEndpoint, headers, restConnector); user = connector.getCredentials(user); }