public SubscriptionCharge(ClientAddress deliveryAddress = null, UnitofWork uow = null) { _subscriptionHelper = uow == null ? new SubscriptionHelper() : new SubscriptionHelper(uow); _orderCharge= new OrderChargeModel(); if (deliveryAddress != null) { _deliveryAddress = deliveryAddress; } }
public SubscriptionCharge(ClientAddress deliveryAddress = null) { _cookers = new FakeCookers().MyCookers; _orderItem = new FakeOrderItems().MyOrderItems; _deliveryZones = new FakeDeliveryZone().MyDeliveryZones; _cookerDeliveryZones = new FakeCookerDeliveryZone().MyCookerDeliveryZones; _fakePaymentMethods = new FakePaymentMethods().MyPaymentMethods; _fakeOrderTypes = new FakeOrderTypes().MyOrderTypes; _fakePlans = new FakePlans().MyPlans; if (deliveryAddress != null) { _deliveryAddress = deliveryAddress; } }
//Address 2 public ClientAddress SecondclientAddress() { var secondclientAddress = new ClientAddress { AddressId = 5, ClientId = 2, Address = "12105 south BlockBob", Apt_suite = "602", CityId = 2, RegionId = 2, CountryId = 2, ZipCode = "66206", PhoneNumber = "8267562020", Cross_Stree = "Accross from restaurant", Instructions = "Ring the bell twice", AddressTypeId = 2 }; return secondclientAddress; }
//Address 2 public ClientAddress FirstclientAddress() { var firstclientAddress = new ClientAddress { AddressId = 4, ClientId = 2, Address = "611 Cortez Street", Apt_suite = null, CityId = 2, RegionId = 2, CountryId = 2, ZipCode = "66226", PhoneNumber = "9234523224", Cross_Stree = null, Instructions = null, AddressTypeId = 1 }; return firstclientAddress; }
//Address 2 public ClientAddress SecondclientAddress() { var secondclientAddress = new ClientAddress { AddressId = 1, ClientId = 1, Address = "4805 Main Street", Apt_suite = "601", CityId = 1, RegionId = 1, CountryId = 1, ZipCode = "66206", PhoneNumber = "8167561010", Cross_Stree = "Accross from Library", Instructions = "Ring the bell", AddressTypeId = 2 }; return secondclientAddress; }
//Address 1 public ClientAddress FirstclientAddress() { var firstclientAddress = new ClientAddress { AddressId = 1, ClientId = 1, Address = "6805 main Street", Apt_suite = null, CityId = 1, RegionId = 1, CountryId = 1, ZipCode = "66216", PhoneNumber = "9134513214", Cross_Stree = null, Instructions = null, AddressTypeId = 1 }; return firstclientAddress; }
//Address 3 public ClientAddress FirstclientAddress() { var firstclientAddress = new ClientAddress { AddressId = 7, ClientId = 3, Address = "6805 main Street", Apt_suite = null, CityId = 3, RegionId = 3, CountryId = 3, ZipCode = "66236", PhoneNumber = "9334533234", Cross_Stree = null, Instructions = null, AddressTypeId = 3 }; return firstclientAddress; }
public OrderCharge(ClientAddress deliveryAddress = null, UnitofWork uow = null) { if (uow == null) { _orderItem = new FakeOrderItems().MyOrderItems; _deliveryZones = new FakeDeliveryZone().MyDeliveryZones; _cookerDeliveryZones = new FakeCookerDeliveryZone().MyCookerDeliveryZones; _promotions = new FakePromotions().MyPromotions; _coupons = new FakeCoupons().MyCoupons; } else { _orderItem = uow.OrderItemRepository.All.ToList(); _deliveryZones = uow.DeliveryZoneRepository.All.ToList(); _cookerDeliveryZones = uow.CookerDeliveryZoneRepository.All.ToList(); _promotions = uow.PromotionRepository.All.ToList(); _coupons = uow.CouponRepository.All.ToList(); } if (deliveryAddress != null) { _deliveryAddress = deliveryAddress; } }
//Address 3 public ClientAddress ThirdclientAddress() { var thirdclientAddress = new ClientAddress { AddressId = 6, ClientId = 2, Address = "10100 South West Boulevard", Apt_suite = null, CityId = 2, RegionId = 2, CountryId = 2, ZipCode = "66206", PhoneNumber = "7562023224", Cross_Stree = null, Instructions = null, AddressTypeId = 3 }; return thirdclientAddress; }