private static ContainerBuilder BuildContainer(StartUp startup)
 {
     var builder = new ContainerBuilder();
     builder.RegisterType<ConsoleOutput>().As<IOutput>();
     builder.RegisterType<TodayDateWriter>().AsSelf().As<IDateWriter>();
     return builder;
 }
 public static void Main()
 {
     StartUp startup = new StartUp();
     startup._container = BuildContainer(startup).Build();
     startup.WriteDate();
     Console.ReadLine();
 }