Ejemplo n.º 1
0
        protected override void OnTearDown()
        {
            client.Disconnect();

            NetworkProfile.DeregisterBlock(LocalAddress);
            NetworkProfile.StopService(LocalAddress, ServiceType.Block);
            NetworkProfile.DeregisterRoot(LocalAddress);
            NetworkProfile.StopService(LocalAddress, ServiceType.Root);
            NetworkProfile.DeregisterManager(LocalAddress);
            NetworkProfile.StopService(LocalAddress, ServiceType.Manager);
        }
Ejemplo n.º 2
0
        public void StartAndStopRoot()
        {
            StartRoot();

            MachineProfile machine = NetworkProfile.GetMachineProfile(LocalAddress);

            Assert.IsNotNull(machine);
            Assert.IsTrue(machine.IsRoot);

            NetworkProfile.StopService(LocalAddress, ServiceType.Root);
            NetworkProfile.Refresh();

            machine = NetworkProfile.GetMachineProfile(LocalAddress);
            Assert.IsNotNull(machine);
            Assert.IsFalse(machine.IsRoot);
        }