public async Task GeneratePaymentUrl_ShouldCallCivicaPayGateway() { var caseRef = "caseRef"; await _civicaPayProvider.GeneratePaymentUrl("form", "page", caseRef, "0101010-1010101", new PaymentInformation { FormName = "form", Settings = new Settings() }); _mockCivicaPayGateway.Verify(_ => _.CreateImmediateBasketAsync(It.IsAny <CreateImmediateBasketRequest>()), Times.Once); _mockCivicaPayGateway.Verify(_ => _.GetPaymentUrl(It.IsAny <string>(), It.IsAny <string>(), It.Is <string>(x => x == caseRef)), Times.Once); }