コード例 #1
0
        public void GetCredentialsFailurePasswordTest()
        {
            User user = new User("*****@*****.**", "mypassword");

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

            user = connector.GetCredentials(user);
        }
コード例 #2
0
ファイル: CredentialsTest.cs プロジェクト: hrocca/SDK-.NET
        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);
        }