public void GetCredentialsFailurePasswordTest() { User user = new User("*****@*****.**", "mypassword"); BvgConnectorMock connector = GetConnector(CredentialsDataProvider.GetCredentialsWrongPasswordResponse()); user = connector.GetCredentials(user); }
public void GetCredentialsEmptyUserTest() { User user = new User(); user.SetPassword("mypassword"); BvgConnectorMock connector = GetConnector(CredentialsDataProvider.GetCredentialsOkResponse()); user = connector.GetCredentials(user); }
public void GetCredentialsEmptyPasswordTest() { User user = new User(); user.SetUser("*****@*****.**"); BvgConnectorMock connector = GetConnector(CredentialsDataProvider.GetCredentialsOkResponse()); user = connector.GetCredentials(user); }
public void GetCredentialsOKTest() { User user = new User("*****@*****.**", "mypassword"); BvgConnectorMock connector = GetConnector(CredentialsDataProvider.GetCredentialsOkResponse()); user = connector.GetCredentials(user); Assert.AreEqual(true, !String.IsNullOrEmpty(user.GetApiKey())); Assert.AreEqual(true, !String.IsNullOrEmpty(user.GetMerchant())); }
public void GetCredentialsUserNullTest() { var headers = new Dictionary <String, String>(); string authorization = "TODOPAGO ABCDEF1234567890"; headers.Add("Authorization", authorization); TodoPagoMockConnector restConnector = new TodoPagoMockConnector("https://developers.todopago.com.ar/t/1.1/api/", headers); restConnector.SetRequestResponse(CredentialsDataProvider.GetCredentialsOkResponse()); TPConnectorMock connector = new TPConnectorMock(TPConnector.developerEndpoint, headers, restConnector); connector.getCredentials(null); }
public void GetCredentialsFailureUserTest() { 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.GetCredentialsWrongUserResponse()); TPConnectorMock connector = new TPConnectorMock(TPConnector.developerEndpoint, headers, restConnector); user = connector.getCredentials(user); }
public void GetCredentialsOKTest() { 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.GetCredentialsOkResponse()); TPConnectorMock connector = new TPConnectorMock(TPConnector.developerEndpoint, headers, restConnector); user = connector.getCredentials(user); Assert.AreEqual(true, !String.IsNullOrEmpty(user.getApiKey())); Assert.AreEqual(true, !String.IsNullOrEmpty(user.getMerchant())); }
public void GetCredentialsUserNullTest() { BvgConnectorMock connector = GetConnector(CredentialsDataProvider.GetCredentialsOkResponse()); connector.GetCredentials(null); }