Пример #1
0
        public void Constructor_NullParameters_Success()
        {
            var client = new AdvancedPaymentClient();

            Assert.Equal(MercadoPagoConfig.HttpClient, client.HttpClient);
            Assert.Equal(MercadoPagoConfig.Serializer, client.Serializer);
        }
Пример #2
0
        public void Constructor_Serializer_Success()
        {
            var serializer = new DefaultSerializer();
            var client     = new AdvancedPaymentClient(serializer);

            Assert.Equal(MercadoPagoConfig.HttpClient, client.HttpClient);
            Assert.Equal(serializer, client.Serializer);
        }
Пример #3
0
        public void Constructor_HttpClientAndSerializer_Success()
        {
            var httpClient = new DefaultHttpClient();
            var serializer = new DefaultSerializer();
            var client     = new AdvancedPaymentClient(httpClient, serializer);

            Assert.Equal(httpClient, client.HttpClient);
            Assert.Equal(serializer, client.Serializer);
        }
Пример #4
0
 public AdvancedPaymentClientTest(ClientFixture clientFixture)
     : base(clientFixture)
 {
     cardTokenClient = new CardTokenTestClient();
     client          = new AdvancedPaymentClient();
 }