public void GetCredentialsFailureUserTest()
        {
            User user = new User("*****@*****.**", "mypassword");

            BvgConnectorMock connector = GetConnector(CredentialsDataProvider.GetCredentialsWrongUserResponse());

            user = connector.GetCredentials(user);
        }
Пример #2
0
        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);
        }