public void DependencyGetsCreatedAndReusedIfSpecifiedOnAttribute()
        {
            MockRequiredDependencyCreate obj1 = builder.BuildUp <MockRequiredDependencyCreate>(locator, "foo", null);
            MockRequiredDependencyCreate obj2 = builder.BuildUp <MockRequiredDependencyCreate>(locator, "bar", null);

            // 2 objects + 1 dependency
            Assert.AreEqual(3, container.Count);

            Assert.IsNotNull(obj1.Dependency, "Dependency not injected");
            Assert.IsNotNull(obj2.Dependency, "Dependency not injected");
            Assert.AreSame(obj1.Dependency, obj2.Dependency, "Instance not reused");
        }
        public void DependencyGetsCreatedIfSpecifiedOnAttribute()
        {
            MockRequiredDependencyCreate obj = builder.BuildUp <MockRequiredDependencyCreate>(locator, "foo", null);

            Assert.IsNotNull(obj.Dependency, "Dependency not injected");
        }