Exemple #1
0
        public string AddCard(string type, string name)
        {
            var card = cardFactory.CreateCard(type, name);

            this.cardRepository.Add(card);

            return($"Successfully added card of type {type}Card with name: {name}");
        }
Exemple #2
0
        public string AddCard(string type, string name)
        {
            var card = CardFactory.CreateCard(type, name);

            this.cardRepository.Add(card);

            return(string.Format(ConstantMessages.SuccessfullyAddedCard, type, name));
        }