public static int Main(string[] args) { var commandCoreApp = new CommandCoreApp(); commandCoreApp.ConfigureServices(sp => { sp.Register <IOutputWriter, OutputWriter>(); }); return(commandCoreApp.Parse(args)); }
static int Main(string[] args) { var commandCoreApp = new CommandCoreApp(); commandCoreApp.ConfigureServices(sp => { sp.Register <IDbRepository, DbRepository>(); sp.Register <ITodoTaskRepository, TodoTaskRepository>(); sp.Register <IPriorityColorChooser, PriorityColorChooser>(); sp.Register <ICategoryRepository, CategoryRepository>(); }); return(commandCoreApp.Parse(args)); }