Esempio n. 1
0
        public void ValidateLazyAndPrototypeCausesBail()
        {
            RootObjectDefinition def
                = new RootObjectDefinition(typeof(TestObject), AutoWiringMode.No);

            def.IsLazyInit  = true;
            def.IsSingleton = false;
            def.Validate();
        }
        public void ValidateLazyAndPrototypeCausesBail()
        {
            RootObjectDefinition def
                = new RootObjectDefinition(typeof(TestObject), AutoWiringMode.No);

            def.IsLazyInit  = true;
            def.IsSingleton = false;
            Assert.Throws <ObjectDefinitionValidationException>(() => def.Validate());
        }
 public void ValidateLazyAndPrototypeCausesBail()
 {
     RootObjectDefinition def
         = new RootObjectDefinition( typeof( TestObject ), AutoWiringMode.No );
     def.IsLazyInit = true;
     def.IsSingleton = false;
     def.Validate();
 }
 public void ValidateLazyAndPrototypeCausesBail()
 {
     RootObjectDefinition def
         = new RootObjectDefinition( typeof( TestObject ), AutoWiringMode.No );
     def.IsLazyInit = true;
     def.IsSingleton = false;
     Assert.Throws<ObjectDefinitionValidationException>(() => def.Validate());
 }