Пример #1
0
    static void Main(string[] args)
    {

      AutoMapperManualConfiguration.Configure();
      var container = new WindsorContainer();
      container.Install(new SamuraiSandboxWindsorInstaller());

      var footballService = container.Resolve<IFootballFacadeAdminService>();
      var tennisService = container.Resolve<ITennisFacadeAdminService>();

      var samuraiConsole = new SamuraiConsole(footballService, tennisService);
      samuraiConsole.SamuraiMenu();

    }
Пример #2
0
        static void Main(string[] args)
        {
            AutoMapperManualConfiguration.Configure();
            var container = new WindsorContainer();

            container.Install(new SamuraiSandboxWindsorInstaller());

            var footballService = container.Resolve <IFootballFacadeAdminService>();
            var tennisService   = container.Resolve <ITennisFacadeAdminService>();

            var samuraiConsole = new SamuraiConsole(footballService, tennisService);

            samuraiConsole.SamuraiMenu();
        }