Exemple #1
0
        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);
        }
Exemple #2
0
 public Catalog(IQueryACatalog Queries, IChangeACatalog Changes,IGenerateProductIds ProductIdGenerator)
 {
     this.Queries = Queries;
     this.Changes = Changes;
     this.ProductIdGenerator = ProductIdGenerator;
 }