private static void Main() { IInputOutputHandler inputOutputHandler = new InpuOutputHandler(); IPhonebookRepository phonebookRepository = new PhoneBookOrganized(); ICommandExecutor commandExecutor = new CommandExecutor(phonebookRepository); IEngine engine = new Engine(commandExecutor, inputOutputHandler); engine.Run(); }
static void Main(string[] args) { var blobFactory = new BlobFactory(); var reader = new ConsoleReader(); var writer = new ConsoleWriter(); var data = new BlobData(); var engine = new Engine(blobFactory, data, reader, writer); engine.Run(); }
public static void Main() { Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture; var issueTrackerData = new IssueTrackerData(); // DI: Refactored the code in different classes. var issueTracker = new IssueTracker(issueTrackerData); // DI: Refactored the code in different classes. var dispacher = new Dispatcher(issueTracker); // DI: Refactored the code in different classes. var engine = new Engine(dispacher); engine.Run(); }