Esempio n. 1
0
        public void Test_ActivatePersistentGridServer_WaitUntilGridActive()
        {
            var server = new ActivatePersistentGridServer();

            server.Should().NotBeNull();

            server.WaitUntilGridActive(TRexGrids.ImmutableGridName()).Should().BeTrue();
        }
Esempio n. 2
0
        private bool ActivateImmutable()
        {
            Log.LogInformation("About to call ActivatePersistentGridServer.Instance().SetGridActive() for Immutable TRex grid");
            bool result = ActivatePersistentGridServer.Instance().SetGridActive(TRexGrids.ImmutableGridName());

            Log.LogInformation($"Activation process completed: Immutable = {result}");

            return(result);
        }
Esempio n. 3
0
        public void Test_ActivatePersistentGridServer_WaitUntilGridActive_Unavailable()
        {
            const string INVALID_GRID_NAME = "UnitTestsXXX";

            var server = new ActivatePersistentGridServer();

            server.Should().NotBeNull();

            Func <bool> act = () => server.WaitUntilGridActive(INVALID_GRID_NAME);

            act.Should().Throw <TRexException>().WithMessage($"{INVALID_GRID_NAME} is an unknown grid to create a reference for.");
        }