Exemplo n.º 1
0
 public ConventionsTypeFinder(
     ConventionsTypeFilter conventionsTypeFilter,
     ConventionsTypeActivator conventionsTypeActivator)
 {
     this._conventionsTypeFilter    = conventionsTypeFilter;
     this._conventionsTypeActivator = conventionsTypeActivator;
 }
        public void Activate_create_instance_for_store_model_convention_type_with_private_constructor()
        {
            var instance = new ConventionsTypeActivator().Activate(typeof(RegularStoreModelConvention));

            Assert.NotNull(instance);
            Assert.IsAssignableFrom <IConvention>(instance);
        }
        public void Activate_create_instance_for_conceptual_model_convention_type()
        {
            var instance = new ConventionsTypeActivator().Activate(typeof(RegularConceptualModelPublicConvention));

            Assert.NotNull(instance);
            Assert.IsAssignableFrom <IConvention>(instance);
        }
        public ConventionsTypeFinder(ConventionsTypeFilter conventionsTypeFilter, ConventionsTypeActivator conventionsTypeActivator)
        {
            DebugCheck.NotNull(conventionsTypeFilter);
            DebugCheck.NotNull(conventionsTypeActivator);

            _conventionsTypeFilter = conventionsTypeFilter;
            _conventionsTypeActivator = conventionsTypeActivator;
        }
Exemplo n.º 5
0
        public ConventionsTypeFinder(ConventionsTypeFilter conventionsTypeFilter, ConventionsTypeActivator conventionsTypeActivator)
        {
            DebugCheck.NotNull(conventionsTypeFilter);
            DebugCheck.NotNull(conventionsTypeActivator);

            _conventionsTypeFilter    = conventionsTypeFilter;
            _conventionsTypeActivator = conventionsTypeActivator;
        }