示例#1
0
 private static void InitDependencyInjection()
 {
     Dependency.CreateUnityContainer();
     Dependency.RegisterType <IArgumentParser, ArgumentParser>();
     Dependency.RegisterType <IFileController, FileController>();
     Dependency.RegisterType <IFileSystem, FileSystem>();
     Dependency.RegisterType <IDisplayController, DisplayController>();
     Dependency.RegisterType <IConsoleAdapter, ConsoleAdapter>();
     Dependency.RegisterType <ISettingsRepository, SettingsRepository>();
 }
示例#2
0
 public void Initialize()
 {
     Dependency.CreateUnityContainer();
 }