public string RegisterSet(string[] args)
        {
            ISet set = setFactory.CreateSet(args[0], args[1]);

            this.stage.AddSet(set);
            return($"Registered {args[1]} set");
        }
        public string RegisterSet(string[] args)
        {
            var setName = args[0];
            var setType = args[1];

            ISet set = setFactory.CreateSet(setName, setType);
            stage.AddSet(set);
            return $"Registered {setType} set";
        }
        public string RegisterSet(string[] args)
        {
            var name = args[0];
            var type = args[1];
            var set  = setFactory.CreateSet(name, type);

            this.stage.AddSet(set);
            return($"Registered {type} set");
        }
Exemple #4
0
        public string RegisterSet(string[] args)
        {
            string name         = args[0];
            string durationType = args[1];
            ISet   newSet       = setFactory.CreateSet(name, durationType);

            stage.AddSet(newSet);
            return($"Registered {durationType} set");
        }
        public string RegisterSet(string[] args)
        {
            var setName = args[0];
            var setType = args[1];

            var registerSet = setFactory.CreateSet(setName, setType);

            return($"Registered set {setName} set");
        }
Exemple #6
0
        public string RegisterSet(string[] args)
        {
            string name = args[0];
            string type = args[1];

            ISet set = setFactory.CreateSet(name, type);

            stage.AddSet(set);
            return(string.Format(RegisterSetSuccsessully, type));
        }
        public string RegisterSet(params string[] parameters)
        {
            string name = parameters[0];
            string type = parameters[1];

            ISet set = setFactory.CreateSet(name, type);

            this.stage.AddSet(set);

            return($"Registered {type} set");
        }
        public string RegisterSet(string[] args)
        {
            string venueName = args[0];
            string venueType = args[1];

            ISet set = setFactory.CreateSet(venueName, venueType);

            this.stage.AddSet(set);

            return($"Registered {venueType} set");
        }
        //RegisterSet {name} {type}
        public string RegisterSet(string[] args)
        {
            string setName = args[0];
            string setType = args[1];

            ISet set = setFactory.CreateSet(setName, setType);

            this.stage.AddSet(set);

            return(string.Format(Constants.SuccessfullyRegisterdSet, setType));
        }
Exemple #10
0
        public string RegisterSet(string[] args)
        {
            string name = args[0];
            string type = args[1];

            var set = setFactory.CreateSet(name, type);

            stage.AddSet(set);

            return(string.Format(RegisteredSet, set.GetType().Name));
        }
        public string RegisterSet(string[] args)
        {
            string name = args[0];
            string type = args[1];

            var createdSet = setFactory.CreateSet(name, type);

            stage.AddSet(createdSet);

            string result = $"Registered {createdSet.GetType().Name} set";

            return(result);
        }
        //checked
        public string RegisterSet(string[] args)
        {
            string name = args[0];
            string type = args[1];

            var set = setFactory.CreateSet(name, type);

            this.stage.AddSet(set);

            string result = $"Registered {type} set";

            return(result);
        }
Exemple #13
0
        public string RegisterSet(string[] args)
        {
            //Creates a set of the specified type with the specified name and adds it to the stage’s sets.
            //Upon a successful set registration, the command returns "Registered {type} set".

            string name = args[0];
            string type = args[1];

            ISet set = setFactory.CreateSet(name, type);

            this.stage.AddSet(set);

            return($"Registered {type} set");
        }
        public string RegisterSet(string[] args)
        {
            try
            {
                string setName = args[0];
                string setType = args[1];

                ISet newSet = setFactory.CreateSet(setName, setType);
                this.stage.AddSet(newSet);

                return($"Registered {setType} set");
            }
            catch
            {
                // not by definition
                return("ERROR registering set");
            }
        }