public void TestShoppingCart() { var request = new Transaction(device: Device, shoppingCart: new List<ShoppingCartItem> {new ShoppingCartItem(itemId: "1")}); Assert.AreEqual("1", request.ShoppingCart[0].ItemId); }
public void TestPayment() { var request = new Transaction(device: Device, payment: new Payment(declineCode: "d")); Assert.AreEqual("d", request.Payment.DeclineCode); }
public void TestShipping() { var request = new Transaction(device: Device, shipping: new Shipping(lastName: "l")); Assert.AreEqual("l", request.Shipping.LastName); }
public void TestEvent() { var request = new Transaction(device: Device, userEvent: new Event(shopId: "1")); Assert.AreEqual("1", request.Event.ShopId); }
public void TestOrder() { var request = new Transaction(device: Device, order: new Order(affiliateId: "af1")); Assert.AreEqual("af1", request.Order.AffiliateId); }
public void TestEmail() { var request = new Transaction(device: Device, email: new Email(domain: "test.com")); Assert.AreEqual("test.com", request.Email.Domain); }
public void TestDevice() { var request = new Transaction(device: Device); Assert.AreEqual(IPAddress.Parse("1.1.1.1"), request.Device.IPAddress); }
public void TestCreditCard() { var request = new Transaction(device: Device, creditCard: new CreditCard(bankName: "name")); Assert.AreEqual("name", request.CreditCard.BankName); }
public void TestBilling() { var request = new Transaction(device: Device, billing: new Billing(address: "add")); Assert.AreEqual("add", request.Billing.Address); }
public void TestAccount() { var request = new Transaction(device: Device, account: new Account(userId: "1")); Assert.AreEqual("1", request.Account.UserId); }