示例#1
0
        public string AddGun(string type, string name)
        {
            IGun gun = (IGun)this.gunFactory.Create(type, name);

            this.gunRepository.Add(gun);

            return($"Successfully added {gun.Name} of type: {gun.GetType().Name}");
        }