public void Should_register_singleton_instance_using_generics()
        {
            var instance = new ClassThatImplementsDependency();

            this.config.Configurer.RegisterSingleton<ClassThatImplementsDependency>(instance);

            var component = this.config.Builder.Build<ClassThatImplementsDependency>();

            component.GetHashCode().ShouldEqual(instance.GetHashCode());
        }
        public void Should_allow_multiple_registrations_of_the_same_component()
        {
            var instance = new ClassThatImplementsDependency();

            this.config.Configurer.RegisterSingleton<ClassThatImplementsDependency>(instance);

            this.config.Configurer.ConfigureComponent<ClassThatImplementsDependency>(ComponentCallModelEnum.Singlecall);
            this.config.Configurer.ConfigureComponent<ClassThatImplementsDependency>(ComponentCallModelEnum.Singlecall);

            var components = this.config.Builder.BuildAll<ClassThatImplementsDependency>();

            components.Count().ShouldEqual(1);
        }