public void DisposedDomainBaseCannotAccessContext()
        {
            var domain = new TestDomain();

            domain.Dispose();
            Assert.Throws <ObjectDisposedException>(() => { var configuration = ((IExpandableDomain)domain).Context; });
        }
 public void DefaultDomainBaseCanBeCreatedAndDisposed()
 {
     using (var domain = new TestDomain())
     {
         domain.Dispose();
     }
 }
 public void DefaultDomainBaseCanBeCreatedAndDisposed()
 {
     using (var domain = new TestDomain())
     {
         domain.Dispose();
     }
 }
 public void DisposedDomainBaseCannotBeInitialized()
 {
     var domain = new TestDomain();
     var expandableDomain = domain as IExpandableDomain;
     var derivedConfig = new DomainConfiguration(
         expandableDomain.Configuration);
     domain.Dispose();
     Assert.Throws<ObjectDisposedException>(() => expandableDomain.Initialize(derivedConfig));
 }
        public void DisposedDomainBaseCannotBeInitialized()
        {
            var domain           = new TestDomain();
            var expandableDomain = domain as IExpandableDomain;
            var derivedConfig    = new DomainConfiguration(
                expandableDomain.Configuration);

            domain.Dispose();
            Assert.Throws <ObjectDisposedException>(() => expandableDomain.Initialize(derivedConfig));
        }
 public void DisposedDomainBaseCannotAccessContext()
 {
     var domain = new TestDomain();
     domain.Dispose();
     Assert.Throws<ObjectDisposedException>(() => { var configuration = ((IExpandableDomain)domain).Context; });
 }