public void BillingShippindAddressInitialize() { _shippingAddressRepository = new ShippingAddressRepository(new Core.Base.Data.SqlServer.Factory.BaseContextFactory <HCRGUniversity.Core.Data.SqlServer.HCRGUniversityDBContext>()); _shippingAddressBL = new ShippingAddressImpl(_shippingAddressRepository); _billingAddressRepository = new BillingAddressRepository(new Core.Base.Data.SqlServer.Factory.BaseContextFactory <HCRGUniversity.Core.Data.SqlServer.HCRGUniversityDBContext>()); _billingAddressBL = new BillingAddressImpl(_billingAddressRepository); }
public static ITransactionRequest CreateMockTransactionRequest( IBillingAddress billingAddress, ICreditCard creditCard) { return(Mock.Of <ITransactionRequest> ( txnReq => txnReq.Amount == 123.45M && txnReq.BillingAddress == billingAddress && txnReq.CreditCard == creditCard )); }
public ShippingPaymentService(IShippingAddress shippingAddress, IBillingAddress billingAddress, IShippingPayment shippingPayment) { _shippingAddress = shippingAddress; _billingAddress = billingAddress; _shippingPayment = shippingPayment; }