Exemplo n.º 1
0
 public void Setup()
 {
     this.gemItemParserMock      = new Mock <IItemParser>();
     this.currencyItemParserMock = new Mock <IItemParser>();
     this.itemParserAggregator   = new ItemParserAggregator(new[] { this.gemItemParserMock.Object, this.currencyItemParserMock.Object });
     this.itemStringBuilder      = new ItemStringBuilder();
 }
Exemplo n.º 2
0
 public void Setup()
 {
     this.itemTypeParserMock  = new Mock <IItemTypeParser>();
     this.itemStatsParserMock = new Mock <IItemStatsParser <ItemWithStats> >();
     this.ItemParser          = new FlaskItemParser(this.itemTypeParserMock.Object, this.itemStatsParserMock.Object);
     this.itemStringBuilder   = new ItemStringBuilder();
 }
 public void Setup()
 {
     this.statsDataServiceMock      = new Mock <IStatsDataService>();
     this.pseudoItemStatsParserMock = new Mock <IPseudoItemStatsParser>();
     this.itemStatsParser           = new ItemStatsParser(this.statsDataServiceMock.Object, this.pseudoItemStatsParserMock.Object);
     this.itemStringBuilder         = new ItemStringBuilder();
 }
 public void Setup()
 {
     this.socketsParserMock   = new Mock <ISocketsParser>();
     this.itemTypeParserMock  = new Mock <IItemTypeParser>();
     this.itemStatsParserMock = new Mock <IItemStatsParser <ItemWithStats> >();
     this.itemDataServiceMock = new Mock <IItemDataService>();
     this.ItemParser          = new EquippableItemParser(
         this.socketsParserMock.Object,
         this.itemTypeParserMock.Object,
         this.itemStatsParserMock.Object,
         this.itemDataServiceMock.Object);
     this.itemStringBuilder = new ItemStringBuilder();
 }
Exemplo n.º 5
0
        public void Setup()
        {
            this.statsDataServiceMock = new Mock <IStatsDataService>();
            this.statsDataServiceMock.Setup(x => x.GetStatData(It.IsAny <string>(), It.IsAny <bool>(), StatCategory.Monster.GetDisplayName()))
            .Returns((string itemStatText, bool preferLocal, string[] _) => new StatData
            {
                Type = StatCategory.Monster.GetDisplayName().ToLower(),
                Text = itemStatText
            });

            this.organItemStatsParser = new OrganItemStatsParser(this.statsDataServiceMock.Object);
            this.itemStringBuilder    = new ItemStringBuilder();
        }
Exemplo n.º 6
0
 public void Setup()
 {
     this.ItemParser        = new CurrencyItemParser();
     this.itemStringBuilder = new ItemStringBuilder().WithRarity(ItemRarity.Currency);
 }
Exemplo n.º 7
0
 public void Setup()
 {
     this.ItemParser        = new ProphecyItemParser();
     this.itemStringBuilder = new ItemStringBuilder();
 }
Exemplo n.º 8
0
 public void Setup()
 {
     this.itemStringBuilder   = new ItemStringBuilder();
     this.itemDataServiceMock = new Mock <IItemDataService>();
     this.itemTypeParser      = new ItemTypeParser(this.itemDataServiceMock.Object);
 }
 public void Setup()
 {
     this.ItemParser        = new FragmentItemParser();
     this.itemStringBuilder = new ItemStringBuilder();
 }
 public void Setup()
 {
     this.ItemParser        = new DivinationCardItemParser();
     this.itemStringBuilder = new ItemStringBuilder().WithRarity(ItemRarity.DivinationCard);
 }
Exemplo n.º 11
0
 public void Setup()
 {
     this.itemStatsParserMock = new Mock <IItemStatsParser <OrganItem> >();
     this.ItemParser          = new OrganItemParser(this.itemStatsParserMock.Object);
     this.itemStringBuilder   = new ItemStringBuilder();
 }