public void ProcessInvalidPayment4() { var mockedBankInstitution = new MockedBankInstitution(); var response = mockedBankInstitution.ProcessPayment(null); Assert.Null(response); }
public void ProcessInvalidPayment3() { var paymentRequest = new PaymentRequest { CardNumber = "1234123412341234", CardHolderName = "JOHN DOE", ExpiryDate = "10/18", Amount = 123.12, Currency = "GBP", CVV = "123" }; var mockedBankInstitution = new MockedBankInstitution(); var response = mockedBankInstitution.ProcessPayment(paymentRequest); Assert.IsType <Guid>(response.Id); Assert.Equal(Status.Expired, response.Status); }