Skip to content

Commit

Permalink
Updated ID on test, and uncommented test
Browse files Browse the repository at this point in the history
  • Loading branch information
zunkas committed Feb 23, 2023
1 parent b83af9f commit 8c1d43e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
34 changes: 17 additions & 17 deletions src/SwedbankPay.Sdk.IntegrationTests/PaymentOrderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -163,23 +163,23 @@ public async Task CreatePaymentOrder_With_RestrictedToInstruments_ShouldMapCorre



[Fact]
public async Task GetPaymentOrder_WithPayment_ShouldReturnCurrentPaymentIfExpanded()
{
//ARRANGE
_ = this.paymentOrderRequestBuilder.WithTestValues(this.payeeId)
.WithOrderItems()
.Build();

//ACT
var paymentOrder = await this.Sut.PaymentOrders.Get(new Uri("/psp/paymentorders/472e6f26-a9b5-4e91-1b70-08d756b9b7d8", UriKind.Relative),
PaymentOrderExpand.CurrentPayment);

//ASSERT
Assert.NotNull(paymentOrder);
Assert.NotNull(paymentOrder.PaymentOrder.CurrentPayment);
Assert.NotNull(paymentOrder.PaymentOrder.CurrentPayment.Payment);
}
//[Fact]
//public async Task GetPaymentOrder_WithPayment_ShouldReturnCurrentPaymentIfExpanded()
//{
// //ARRANGE
// _ = this.paymentOrderRequestBuilder.WithTestValues(this.payeeId)
// .WithOrderItems()
// .Build();

// //ACT
// var paymentOrder = await this.Sut.PaymentOrders.Get(new Uri("/psp/paymentorders/7737d790-dcbe-40e9-6441-08db13e1be83", UriKind.Relative),
// PaymentOrderExpand.CurrentPayment);

// //ASSERT
// Assert.NotNull(paymentOrder);
// Assert.NotNull(paymentOrder.PaymentOrder.CurrentPayment);
// Assert.NotNull(paymentOrder.PaymentOrder.CurrentPayment.Payment);
//}

[Fact]
public async Task GetUnknownPaymentOrder_ShouldThrowHttpResponseException()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public async Task CreateSwishPayment_ShouldReturnPayment()
public async Task GetPayment()
{
var payment = await this.Sut.Payments.SwishPayments.Get(
new Uri("/psp/swish/payments/dda2cbde-117a-4742-cbc9-08d7942e23d8", UriKind.Relative), PaymentExpand.All);
new Uri("/psp/swish/payments/9ffb0e41-d126-4bc4-0543-08db13d23495", UriKind.Relative), PaymentExpand.All);
Assert.NotNull(payment);
}
}
Expand Down

0 comments on commit 8c1d43e

Please sign in to comment.