public void Init() { _configurationBllMock = new Mock <IConfigurationBll>(); _configurationBllMock.Setup(x => x.Get()) .Returns(() => new MySettings { UseTestPayment = true }); _transactionDal = new Mock <ITransactionDal>(); _bll = new TransactionsBll(_configurationBllMock.Object, BllFactory.Current.SecurityBll, _transactionDal.Object); _product = new ProductBdo(); _product.PosId = 1005; }
public PdfShartBll(IConfigurationBll configurationBll, IProductsBll productBll, ITransactionsBll transactionsBll) { if (configurationBll == null) { throw new ArgumentNullException("configurationBll"); } if (productBll == null) { throw new ArgumentNullException("productBll"); } if (transactionsBll == null) { throw new ArgumentNullException("transactionsBll"); } _productsBll = productBll; _configurationBll = configurationBll; _transactionsBll = transactionsBll; }