Exemplo n.º 1
0
        public void ProvidesACollectionOfArmor()
        {
            var shop   = new ArmorShop();
            var armors = shop.GetInventory <IArmor>();

            Assert.NotEmpty(armors);
        }
Exemplo n.º 2
0
        public void ProvidesSomeMasterworkArmor()
        {
            var shop      = new ArmorShop();
            var armors    = shop.GetInventory();
            var mwkArmors = shop.GetInventory <MasterworkArmor>();

            Assert.NotEmpty(armors);
            Assert.NotEmpty(mwkArmors);
        }
Exemplo n.º 3
0
 public CurrentBuilding(
     Building building     = null,
     Church church         = null,
     ArmorShop armorShop   = null,
     WeaponShop weaponShop = null,
     ItemShop itemShop     = null
     )
 {
     Building   = building;
     Church     = church;
     ArmorShop  = armorShop;
     WeaponShop = weaponShop;
     ItemShop   = itemShop;
 }
Exemplo n.º 4
0
 public Location(
     string name, Coords coords, Building[] buildings, Citizen[] citizens,
     string category, Church church, ArmorShop armorShop, WeaponShop weaponShop, ItemShop itemShop
     )
 {
     Name       = name;
     Coords     = coords;
     Buildings  = buildings;
     Citizens   = citizens;
     Category   = category;
     Church     = church;
     ArmorShop  = armorShop;
     WeaponShop = weaponShop;
     ItemShop   = itemShop;
 }
Exemplo n.º 5
0
        public PurchaseArmorTests()
        {
            var armors = new List <Armor>();

            plate           = new Armor();
            plate.ArmorType = ArmorType.Heavy;
            plate.Name      = "Full Plate";
            armors.Add(plate);

            armorShop           = new ArmorShop(armors);
            proficientCharacter = CharacterTestTemplates.AverageBob();
            proficientCharacter.Defense.AddArmorProficiencies(new string[] { "light", "medium", "heavy", "shield" });
            incapableCharacter = CharacterTestTemplates.AverageBob();

            subject = new PurchaseArmor(armorShop);
        }
Exemplo n.º 6
0
 public PurchaseArmor(ArmorShop armorShop)
 {
     this.armorShop = armorShop;
 }
Exemplo n.º 7
0
 public PurchaseArmor()
 {
     armorShop = new ArmorShop();
 }
Exemplo n.º 8
0
 public void SetCurrentBuilding(ArmorShop armorShop)
 {
     ResetBuildings();
     ArmorShop = armorShop;
 }