Beispiel #1
0
        public void EnableGlobalCatalog_Disposed_ThrowsObjectDisposedException()
        {
            var controller = new SubController();

            controller.Dispose();

            Assert.Throws <ObjectDisposedException>(() => controller.EnableGlobalCatalog());
        }
Beispiel #2
0
        public void GetAllReplicationNeighbors_Disposed_ThrowsObjectDisposedException()
        {
            var controller = new SubController();

            controller.Dispose();

            Assert.Throws <ObjectDisposedException>(() => controller.GetAllReplicationNeighbors());
        }
Beispiel #3
0
        public void TriggerSyncReplicaFromNeighbors_Disposed_ThrowsObjectDisposedException()
        {
            var controller = new SubController();

            controller.Dispose();

            Assert.Throws <ObjectDisposedException>(() => controller.TriggerSyncReplicaFromNeighbors("partition"));
        }
Beispiel #4
0
        public void CheckReplicationConsistency_Disposed_ThrowsObjectDisposedException()
        {
            var controller = new SubController();

            controller.Dispose();

            Assert.Throws <ObjectDisposedException>(() => controller.CheckReplicationConsistency());
        }
Beispiel #5
0
        public void SyncReplicaFromServer_Disposed_ThrowsObjectDisposedException()
        {
            var controller = new SubController();

            controller.Dispose();

            Assert.Throws <ObjectDisposedException>(() => controller.SyncReplicaFromServer("partition", "sourceServer"));
        }
Beispiel #6
0
        public void SyncReplicaFromAllServers_Disposed_ThrowsObjectDisposedException()
        {
            var controller = new SubController();

            controller.Dispose();

            Assert.Throws <ObjectDisposedException>(() => controller.SyncReplicaFromAllServers("partition", SyncFromAllServersOptions.AbortIfServerUnavailable));
        }
Beispiel #7
0
        public void OutboundConnections_GetWhenDisposed_ThrowsObjectDisposedException()
        {
            var controller = new SubController();

            controller.Dispose();

            Assert.Throws <ObjectDisposedException>(() => controller.OutboundConnections);
        }
Beispiel #8
0
        public void SiteName_GetWhenDisposed_ThrowsObjectDisposedException()
        {
            var controller = new SubController();

            controller.Dispose();

            Assert.Throws <ObjectDisposedException>(() => controller.SiteName);
        }
Beispiel #9
0
        public void MoveToAnotherSite_Disposed_ThrowsObjectDisposedException()
        {
            var controller = new SubController();

            controller.Dispose();

            Assert.Throws <ObjectDisposedException>(() => controller.MoveToAnotherSite("siteName"));
        }
Beispiel #10
0
        public void OSVersion_GetWhenDisposed_ThrowsObjectDisposedException()
        {
            var controller = new SubController();

            controller.Dispose();

            Assert.Throws <ObjectDisposedException>(() => controller.OSVersion);
        }
Beispiel #11
0
        public void GetReplicationOperationInformation_Disposed_ThrowsObjectDisposedException()
        {
            var controller = new SubController();

            controller.Dispose();

            Assert.Throws <ObjectDisposedException>(() => controller.GetReplicationOperationInformation());
        }
Beispiel #12
0
        public void GetReplicationMetadata_Disposed_ThrowsObjectDisposedException()
        {
            var controller = new SubController();

            controller.Dispose();

            Assert.Throws <ObjectDisposedException>(() => controller.GetReplicationMetadata("objectPath"));
        }
Beispiel #13
0
        public void GetReplicationCursors_Disposed_ThrowsObjectDisposedException()
        {
            var controller = new SubController();

            controller.Dispose();

            Assert.Throws <ObjectDisposedException>(() => controller.GetReplicationCursors("partition"));
        }
Beispiel #14
0
        public void GetReplicationConnectionFailures_Disposed_ThrowsObjectDisposedException()
        {
            var controller = new SubController();

            controller.Dispose();

            Assert.Throws <ObjectDisposedException>(() => controller.GetReplicationConnectionFailures());
        }
Beispiel #15
0
        public void GetDirectoryEntry_Disposed_ThrowsObjectDisposedException()
        {
            var controller = new SubController();

            controller.Dispose();

            Assert.Throws <ObjectDisposedException>(() => controller.GetDirectoryEntry());
        }
Beispiel #16
0
        public void SyncFromAllServersCallback_GetSetWhenDisposed_ThrowsObjectDisposedException()
        {
            var controller = new SubController();

            controller.Dispose();

            Assert.Throws <ObjectDisposedException>(() => controller.SyncFromAllServersCallback);
            Assert.Throws <ObjectDisposedException>(() => controller.SyncFromAllServersCallback = null);
        }