public void TearDown() { this.checksumService = null; this.items = null; this.billingAddress = null; this.shippingAddress = null; this.fee = null; }
public void Initialize() { base.Initialize(); this.checksumService = _paymill.ChecksumService; this.items = new List<ShoppingCartItem>(); this.items.Add(createShopingCardItem("Rambo Poster", "John J. Rambo", 2200, 3, "898-24342-343", "http://www.store.com/items/posters/12121-rambo")); this.items.Add(createShopingCardItem("Comando Poster", "John Matrix", 3100, 1, "898-24342-341", "http://www.store.com/items/posters/12121-comando")); this.billingAddress = createAddress("John Rambo", "TH", "Buriram", "Buriram", "Wat Sawai So 2", "23/4/14", "1527", "+66 32 12-555-23"); this.shippingAddress = createAddress("Rocky Balboa", "US", "Pennsylvania", "Philadelphia", "1818 East Tusculum Street", "34/2B", "19134", "+1 215 23-555-32"); this.fee = new Fee(); this.fee.Amount = this.feeAmount; this.fee.Payment = this.feePayment; }
private Address createAddress(String name, String country, String state, String city, String streetAddress, String streetAddressAddition, String postalCode, String phone) { Address address = new Address(); address.Name = name; address.Country = country; address.State = state; address.City = city; address.StreetAddress = streetAddress; address.StreetAddressAddition = streetAddressAddition; address.PostalCode = postalCode; address.Phone = phone; return address; }