Пример #1
0
        public static NinjaEquipment Create(int ninjaId, string name)
        {
            var equip = new NinjaEquipment(ninjaId, name);

            equip.State = ObjectStates.Added;
            return(equip);
        }
Пример #2
0
 public void EquipmentNoLongerExists(NinjaEquipment equipment)
 {
     equipment.State = ObjectStates.Deleted;
 }
Пример #3
0
 public void TransferEquipmentFromAnotherNinja(NinjaEquipment equipment)
 {
     EquipmentOwned.Add(equipment.ChangeOwner(Id));
 }
Пример #4
0
 public void AddEquipmentToNinja(string equipmentName)
 {
     EquipmentOwned.Add(NinjaEquipment.Create(Id, equipmentName));
 }