public void should_register_a_simple_object_type()
 {
     var objectBoss = new ObjectBoss();
     objectBoss.Configure(x => x.Add<SimpleObjectType>());
     Assert.IsTrue(objectBoss.Contains<SimpleObjectType>());
 }
 public void should_register_an_interface_and_have_a_default_concrete_type()
 {
     var objectBoss = new ObjectBoss();
     objectBoss.Configure(x => x.AddUsing<ISimpleInterface, SimpleObjectType>());
     Assert.IsTrue(objectBoss.Contains<ISimpleInterface>());
 }
 public void should_add_all_types_from_a_registry()
 {
     var objectBoss = new ObjectBoss();
     objectBoss.Configure(x => x.AddRegistry<TestRegistry>());
     Assert.IsTrue(objectBoss.Contains<SimpleObjectType>() && objectBoss.Contains<AnotherSimpleObject>() && objectBoss.Contains<ObjectWithOneDependency>());
 }
        public void should_contain_a_class_definition_defined_with_a_key()
        {
            var objectBoss = new ObjectBoss();
            objectBoss.Configure(x =>
            {
                x.AddUsing<ISimpleInterface, SimpleObjectType>("testkey");
            });

            Assert.IsTrue(objectBoss.Contains("testkey"));
        }
 public void should_contain_an_object_definition_when_one_is_defined()
 {
     var objectBoss = new ObjectBoss();
     objectBoss.Configure(x => x.Add<SimpleObjectType>());
     Assert.IsTrue(objectBoss.Contains<SimpleObjectType>());
 }
 public void should_contain_an_interface_definition_when_one_is_defined()
 {
     var objectBoss = new ObjectBoss();
     objectBoss.Configure(x =>
     {
         x.AddUsing<ISimpleInterface, SimpleObjectType>();
     });
     Assert.IsTrue(objectBoss.Contains<ISimpleInterface>());
 }