public void SetupProducts() { var catalogState = new CatalogState(); this.Queries = catalogState; this.Changes = catalogState; this.a_fake_ProductIdGenerator = new FakeProductIdGenerator(); this.Catalog = new Catalog(catalogState, catalogState, a_fake_ProductIdGenerator); }
public Catalog(IQueryACatalog Queries, IChangeACatalog Changes,IGenerateProductIds ProductIdGenerator) { this.Queries = Queries; this.Changes = Changes; this.ProductIdGenerator = ProductIdGenerator; }