Beispiel #1
0
        public static int Main(string[] args)
        {
            var commandCoreApp = new CommandCoreApp();

            commandCoreApp.ConfigureServices(sp =>
            {
                sp.Register <IOutputWriter, OutputWriter>();
            });
            return(commandCoreApp.Parse(args));
        }
Beispiel #2
0
        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));
        }