public AddCommand(IPrinter printer, IPhonebookRepository phonebookRepository, IPhoneNumberConvertor converter) { this.Printer = printer; this.Data = phonebookRepository; this.PhoneConvertor = converter; }
public CommandManager(IPhonebookRepository phonebookRepository, IPrinter printer, IPhoneNumberConvertor converter) { this.PhonebookRepository = phonebookRepository; this.Printer = printer; this.PhoneConverter = converter; }