public ProductService(long pid,Data.IProductRepository repository, IProductSearchManager searchManager) { _Repository = repository; _SearchManager = searchManager; _LazyEntity = new Lazy<Data.Product>(() => { return _Repository.Entities.FirstOrDefault(d => d.pid == pid); }); }
public ProductServiceFactory(Data.IProductRepository repository, IProductSearchManager searchManager) { _Repository = repository; _SearchManager = searchManager; }
public ProductManager(Data.IProductRepository repository, IFileStore fileStore, IProductSearchManager searchManager) { _Repository = repository; _FileStore = fileStore; _SearchManager = searchManager; }