예제 #1
0
        public ShoppingListBuilder WithStore(Action <Pdbc.Shopping.Domain.Model.StoreBuilder> storeBuilder)
        {
            var b = new Pdbc.Shopping.Domain.Model.StoreBuilder();

            storeBuilder.Invoke(b);
            this.Store = b.Build();
            return(this);
        }
예제 #2
0
 public ShoppingListBuilder WithStore(Pdbc.Shopping.Domain.Model.Store store)
 {
     this.Store = store;
     return(this);
 }