public void Constructor_NullParameters_Success() { var client = new CardTokenClient(); Assert.Equal(MercadoPagoConfig.HttpClient, client.HttpClient); Assert.Equal(MercadoPagoConfig.Serializer, client.Serializer); }
public void Constructor_Serializer_Success() { var serializer = new DefaultSerializer(); var client = new CardTokenClient(serializer); Assert.Equal(MercadoPagoConfig.HttpClient, client.HttpClient); Assert.Equal(serializer, client.Serializer); }
public void Constructor_HttpClientAndSerializer_Success() { var httpClient = new DefaultHttpClient(); var serializer = new DefaultSerializer(); var client = new CardTokenClient(httpClient, serializer); Assert.Equal(httpClient, client.HttpClient); Assert.Equal(serializer, client.Serializer); }
public CardTokenClientTest(ClientFixture clientFixture) : base(clientFixture) { client = new CardTokenClient(); cardTokenTestClient = new CardTokenTestClient(); }