Exemplo n.º 1
0
        public void SetUp()
        {
            _store = new SimpleStorePure();
            _store.AddItemToInventory("ea001");
            _store.AddItemToInventory("ea001");
            _store.AddItemToInventory("ea002");

            _comb = new Combination(_store,
                                    requirements: new List <string> {
                "ea001", "ea001", "ea002"
            },
                                    result: "ea009");
        }
Exemplo n.º 2
0
        public void SetUp()
        {
            _store = new SimpleStorePure();
            _store.AddItemToInventory("ea001");
            _store.AddItemToInventory("ea002");

            var comb1 = new Combination(_store,
                                        requirements: new List <string> {
                "ea001", "ea002"
            },
                                        result: "ea009");
            var comb2 = new Combination(_store,
                                        requirements: new List <string> {
                "ea002", "ea003"
            },
                                        result: "ea012");

            _ui = new MyAcademyUiPure(new List <Combination> {
                comb1, comb2
            });
        }