public async Task ShouldInstantiateAndRetrieveClientsDefault() { PaymentLinkRequest paymentLinkRequest = new PaymentLinkRequest(); PaymentLinkResponse paymentLinkResponse = new PaymentLinkResponse { Id = "1", ExpiresOn = DateTime.Now, Reference = "ref1234" }; _apiClient.Setup(apiClient => apiClient.Post <PaymentLinkResponse>(PaymentLinksPath, _authorization, paymentLinkRequest, CancellationToken.None, null)) .ReturnsAsync(() => paymentLinkResponse); IPaymentLinksClient paymentLinksClient = new PaymentLinksClient(_apiClient.Object, _configuration.Object); var response = await paymentLinksClient.Create(paymentLinkRequest, CancellationToken.None); response.ShouldNotBeNull(); response.Id.ShouldNotBeNull(); response.Id.ShouldBe("1"); response.ExpiresOn.ShouldNotBeNull(); response.Reference.ShouldNotBeNull(); response.Reference.ShouldBe("ref1234"); response.ShouldBeSameAs(paymentLinkResponse); }