Example #1
0
 public void Run() {
    var ryu = new RyuFactory().Create();
    ryu.Touch<ItzWartyCommonsRyuPackage>();
    ryu.Setup();
    AssertTrue(ryu.Get<ICollectionFactory>() is CollectionFactory);
    AssertTrue(ryu.Get<ObjectPoolFactory>() is DefaultObjectPoolFactory);
 }
        public static void Main()
        {
            var ryu = new RyuFactory().Create();
             ryu.Touch<ItzWartyCommonsRyuPackage>();
             ryu.Touch<ItzWartyProxiesRyuPackage>();
             ryu.Setup();

             var application = Application.Current ?? new Application();

             var projectLoader = new RiotProjectLoader(@"T:\Games\LeagueOfLegends\RADS");
             var gameProject = projectLoader.LoadProject(RiotProjectType.GameClient);

             var nodeViewModelFactory = ryu.Get<NodeViewModelFactory>();
             var viewModel = nodeViewModelFactory.CreateFromNode(gameProject.ReleaseManifest.Root);

             var window = new FileExplorer {
            DataContext = new[] { viewModel }
             };
             application.Run(window);
        }
      static NestDeployer() {
         var ryu = new RyuFactory().Create();
         ryu.Touch<ItzWartyProxiesRyuPackage>();
         fileSystemProxy = ryu.Get<IFileSystemProxy>();

         nestClientPath = Path.Combine(NestDeployerConstants.RootSolutionDirectoryPath, "deploy", "nest_client");
         fileSystemProxy.PrepareDirectory(nestClientPath);

//         nestServerPath = Path.Combine(NestDeployerConstants.RootSolutionDirectoryPath, "deploy", "nest_server");
         nestServerPath = @"C:\Apache24\htdocs"; //Path.Combine(NestDeployerConstants.RootSolutionDirectoryPath, "deploy", "nest_server");
         fileSystemProxy.PrepareDirectory(nestServerPath);
      }
      public void Run() {
         ZileanApplicationEgg.InitializeLogging();

         var serverHatchling = new ZileanApplicationEgg();
         serverHatchling.Start(null);

         var systemState = CreateMock<SystemState>();
         var managementServer = CreateMock<ILocalManagementServer>();

         var clientRyu = new RyuFactory().Create();
         clientRyu.Set(systemState);
         clientRyu.Set(managementServer);
         clientRyu.Touch<ItzWartyProxiesRyuPackage>();
         clientRyu.Touch<ServicesRyuPackage>();
         clientRyu.Touch<ZileanClientApiRyuPackage>();

         var chronokeeper = clientRyu.Get<ChronokeeperService>();
         Debug.WriteLine("Got sequential id: " + chronokeeper.GenerateSequentialId());
         Debug.WriteLine("Got sequential guid: " + chronokeeper.GenerateSequentialGuid());

         serverHatchling.Shutdown();
      }