Пример #1
0
        public void Setup()
        {
            var items = new List <ItemDto>
            {
                new Item {
                    VNum = 1, ItemType = ItemType.Title, EffectValue = 0, Type = NoscorePocketType.Main
                },
            };

            _itemProvider = new ItemProvider(items,
                                             new List <IEventHandler <Item, Tuple <InventoryItemInstance, UseItemPacket> > >());

            _session = TestHelpers.Instance.GenerateSession();
            _handler = new TitleGuriHandler();
        }
Пример #2
0
        public async Task SetupAsync()
        {
            var items = new List <ItemDto>
            {
                new Item {
                    VNum = 1, ItemType = ItemType.Title, EffectValue = 0, Type = NoscorePocketType.Main
                },
            };

            _itemProvider = new ItemProvider(items,
                                             new List <IEventHandler <Item, Tuple <InventoryItemInstance, UseItemPacket> > >());

            Session = await TestHelpers.Instance.GenerateSessionAsync().ConfigureAwait(false);

            Handler = new TitleGuriHandler();
        }
Пример #3
0
        public async Task SetupAsync()
        {
            await TestHelpers.ResetAsync();

            var items = new List <ItemDto>
            {
                new Item {
                    VNum = 1, ItemType = ItemType.Title, EffectValue = 0, Type = NoscorePocketType.Main
                },
            };

            _itemProvider = new GameObject.Services.ItemGenerationService.ItemGenerationService(items,
                                                                                                new EventLoaderService <Item, Tuple <InventoryItemInstance, UseItemPacket>, IUseItemEventHandler>(new List <IEventHandler <Item, Tuple <InventoryItemInstance, UseItemPacket> > >()), _logger);

            Session = await TestHelpers.Instance.GenerateSessionAsync().ConfigureAwait(false);

            Handler = new TitleGuriHandler();
        }