Пример #1
0
        public void Registry_should_work()
        {
            var registry =
                new FakeConventionRegistry();

            var conventions =
                registry.GetConventions();

            conventions.Count().ShouldEqual(1);
        }
Пример #2
0
        public void Registry_should_work()
        {
            var registry =
                new FakeConventionRegistry();

            var conventions =
                registry.GetConventions();

            conventions.Count().ShouldEqual(3);
        }
        private static ConventionCatalog CreateDefaultConventionCatalogWithTypeLoader(ITypeLoader typeLoader)
        {
            var registry =
                new FakeConventionRegistry();

            return CreateConventionCatalog(registry.GetConventions(), typeLoader);
        }
        private static ConventionCatalog CreateDefaultConventionCatalogWithEmptyTypeLoader()
        {
            var registry =
                new FakeConventionRegistry();

            return CreateConventionCatalog(registry.GetConventions(), CreateEmptyTypeLoader());
        }