public void broker_successfully_returns_products() { ProductBroker broker = new ProductBroker(new ApiBrokerConfig { EndPoint = ConfigurationManager.AppSettings["apiEndpoint"] }); var products = broker.GetAllForSupplier(new Supplier { SupplierId = 2, DatabaseConfigKey = "dbSupplier" }); Assert.IsNotNull(products); Assert.IsTrue(products.Count > 1); }
public OrderService() { _orderBroker = new OrderBroker(); _productBroker = new ProductBroker(); _sessionContainer = new SessionContainer(); }
public ProductService() { broker = new ProductBroker(); }