示例#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);
        }
示例#2
0
文件: Catalog.cs 项目: ToJans/dypsok
 public Catalog(IQueryACatalog Queries, IChangeACatalog Changes,IGenerateProductIds ProductIdGenerator)
 {
     this.Queries = Queries;
     this.Changes = Changes;
     this.ProductIdGenerator = ProductIdGenerator;
 }