private Wand CreateWand(string color, string desc, string name, Wand.eMaterialType type) { var wand = new Wand(); wand.Color = color; wand.Description = desc; wand.Name = name; wand.MaterialType = type; return(wand); }
private Wand.eMaterialType GetMaterialType(string wandMaterial) { Wand.eMaterialType result = Wand.eMaterialType.Wood; if (wandMaterial == Wand.GLASS_TYPE) { result = Wand.eMaterialType.Glass; } else if (wandMaterial == Wand.METAL_TYPE) { result = Wand.eMaterialType.Metal; } return(result); }