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(); }
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(); }
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(); }