static void Main(string[] args) { using (UnityContainer container = new UnityContainer()) { ContainerBootstrapper.RegisterTypes(container); Application consoleApp = new Application(); consoleApp.Title = "WELCOME! This program will help you test the Files REST service."; foreach (string commandType in new string[] { "UploadCommand", "GetAllMetadataCommand", "GetMetadataCommand", "DownloadAllCommand", "DownloadCommand", "DeleteCommand", "SettingsCommand" }) { Commands.BaseCommand command = container.Resolve<Commands.BaseCommand>(commandType); consoleApp.AddCommand(command); } Starter.Start(consoleApp); } }