Skip to content

Commit 5dfd182

Browse files
Update test. Previous unavailable
1 parent de43024 commit 5dfd182

File tree

8 files changed

+16
-18
lines changed

8 files changed

+16
-18
lines changed

test/CheckoutSdkTest/CheckoutSdkIntegrationTest.cs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,9 @@ public async Task ShouldInstantiateClientWithCustomHttpClientFactory()
1717
{
1818
var checkoutApi = CheckoutSdk
1919
.Builder()
20-
.Previous()
2120
.StaticKeys()
22-
.PublicKey(System.Environment.GetEnvironmentVariable("CHECKOUT_PREVIOUS_PUBLIC_KEY"))
23-
.SecretKey(System.Environment.GetEnvironmentVariable("CHECKOUT_PREVIOUS_SECRET_KEY"))
21+
.PublicKey(System.Environment.GetEnvironmentVariable("CHECKOUT_DEFAULT_PUBLIC_KEY"))
22+
.SecretKey(System.Environment.GetEnvironmentVariable("CHECKOUT_DEFAULT_SECRET_KEY"))
2423
.Environment(Environment.Sandbox)
2524
.HttpClientFactory(new TestingClientFactory())
2625
.Build();
@@ -29,7 +28,7 @@ public async Task ShouldInstantiateClientWithCustomHttpClientFactory()
2928

3029
try
3130
{
32-
await checkoutApi.EventsClient().RetrieveAllEventTypes();
31+
await checkoutApi.WorkflowsClient().GetWorkflows();
3332
throw new XunitException();
3433
}
3534
catch (CheckoutApiException ex)
@@ -45,10 +44,9 @@ public async Task ShouldInstantiateClientWithSubdomainFactory()
4544
{
4645
var checkoutApi = CheckoutSdk
4746
.Builder()
48-
.Previous()
4947
.StaticKeys()
50-
.PublicKey(System.Environment.GetEnvironmentVariable("CHECKOUT_PREVIOUS_PUBLIC_KEY"))
51-
.SecretKey(System.Environment.GetEnvironmentVariable("CHECKOUT_PREVIOUS_SECRET_KEY"))
48+
.PublicKey(System.Environment.GetEnvironmentVariable("CHECKOUT_DEFAULT_PUBLIC_KEY"))
49+
.SecretKey(System.Environment.GetEnvironmentVariable("CHECKOUT_DEFAULT_SECRET_KEY"))
5250
.Environment(Environment.Sandbox)
5351
.EnvironmentSubdomain(System.Environment.GetEnvironmentVariable("CHECKOUT_MERCHANT_SUBDOMAIN"))
5452
.HttpClientFactory(new TestingClientFactory())
@@ -58,7 +56,7 @@ public async Task ShouldInstantiateClientWithSubdomainFactory()
5856

5957
try
6058
{
61-
await checkoutApi.EventsClient().RetrieveAllEventTypes();
59+
await checkoutApi.WorkflowsClient().GetWorkflows();
6260
throw new XunitException();
6361
}
6462
catch (CheckoutApiException ex)

test/CheckoutSdkTest/Instruments/InstrumentsIntegrationTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ private async Task ShouldUpdateCardInstrument()
114114
var updateCardInstrument = new UpdateCardInstrumentRequest
115115
{
116116
ExpiryMonth = 12,
117-
ExpiryYear = 2024,
117+
ExpiryYear = 2030,
118118
Name = "John Doe",
119119
Customer = new UpdateCustomerRequest {Id = tokenInstrument.Customer.Id, Default = true},
120120
AccountHolder = new AccountHolder
@@ -148,7 +148,7 @@ private async Task ShouldUpdateCardInstrument()
148148
cardResponse.Id.ShouldNotBeNull();
149149
cardResponse.Fingerprint.ShouldNotBeNull();
150150
cardResponse.ExpiryMonth.ShouldBe(12);
151-
cardResponse.ExpiryYear.ShouldBe(2024);
151+
cardResponse.ExpiryYear.ShouldBe(2030);
152152
cardResponse.Customer.Default.ShouldBeTrue();
153153
cardResponse.AccountHolder.FirstName.ShouldBe("John");
154154
cardResponse.AccountHolder.LastName.ShouldBe("Doe");

test/CheckoutSdkTest/Payments/PaymentsClientTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ private async Task ShouldRequestPayment_IdempotencyKey()
135135
Stored = false,
136136
BillingAddress = new Address(),
137137
ExpiryMonth = 12,
138-
ExpiryYear = 2024,
138+
ExpiryYear = 2030,
139139
TokenType = NetworkTokenType.Vts
140140
}
141141
};

test/CheckoutSdkTest/Payments/PayoutsIntegrationTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ private async Task ShouldMakeCardPayoutPayments()
2727
{
2828
Number = "5219565036325411",
2929
ExpiryMonth = 12,
30-
ExpiryYear = 2024,
30+
ExpiryYear = 2030,
3131
AccountHolder = new AccountHolder
3232
{
3333
Type = AccountHolderType.Individual,
@@ -50,7 +50,7 @@ private async Task ShouldMakeCardPayoutPayments()
5050
Type = AccountHolderIdentificationType.Passport,
5151
Number = "E2341",
5252
IssuingCountry = CountryCode.FR,
53-
DateOfExpiry = "2024-05-05"
53+
DateOfExpiry = "2030-05-05"
5454
},
5555
5656
}

test/CheckoutSdkTest/Payments/Previous/RefundPaymentsIntegrationTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace Checkout.Payments.Previous
77
{
88
public class RefundPaymentsIntegrationTest : AbstractPaymentsIntegrationTest
99
{
10-
[Fact]
10+
[Fact(Skip = "unavailable")]
1111
private async Task ShouldRefundCardPayment()
1212
{
1313
var paymentResponse = await MakeCardPayment(true);
@@ -23,7 +23,7 @@ private async Task ShouldRefundCardPayment()
2323
response.GetLink("payment").ShouldNotBeNull();
2424
}
2525

26-
[Fact]
26+
[Fact(Skip = "unavailable")]
2727
private async Task ShouldRefundCardPayment_Idempotently()
2828
{
2929
var paymentResponse = await MakeCardPayment(true);

test/CheckoutSdkTest/Payments/Previous/RequestPaymentsIntegrationTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ private async Task ShouldMakeCardVerification()
159159
paymentResponse.HasLink("void").ShouldBeFalse();
160160
}
161161

162-
[Fact]
162+
[Fact(Skip = "unavailable")]
163163
private async Task ShouldMakeCard3dsPayment()
164164
{
165165
var paymentResponse = await Make3dsCardPayment();

test/CheckoutSdkTest/Payments/Previous/RequestPayoutsIntegrationTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace Checkout.Payments.Previous
1111
{
1212
public class RequestPayoutsIntegrationTest : AbstractPaymentsIntegrationTest
1313
{
14-
[Fact]
14+
[Fact(Skip = "unavailable")]
1515
private async Task ShouldRequestPayout()
1616
{
1717
var phone = new Phone {CountryCode = "44", Number = "020 222333"};

test/CheckoutSdkTest/Sessions/SessionsClientTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ private async Task ShouldRequestSessionCreateSessionOkResponse()
5656
{
5757
Source = new SessionNetworkTokenSource
5858
{
59-
Token = "token", ExpiryMonth = 12, ExpiryYear = 2024, Name = "name"
59+
Token = "token", ExpiryMonth = 12, ExpiryYear = 2030, Name = "name"
6060
}
6161
};
6262
var response = new CreateSessionOkResponse

0 commit comments

Comments
 (0)