Ejemplo n.º 1
0
        public void WhenInitialized_ThenDefaultTypesAreRegistered()
        {
            var thingTypeRegistrarInternal = new ThingTypeRegistrar();

            Assert.IsNotNull(thingTypeRegistrarInternal.RegisteredTypeHandlers);
            Assert.IsTrue(thingTypeRegistrarInternal.RegisteredTypeHandlers.Count > 1);
        }
Ejemplo n.º 2
0
        public void WhenExtensionHandlerRegistered()
        {
            var thingTypeRegistrarInternal = new ThingTypeRegistrar();

            thingTypeRegistrarInternal.RegisterExtensionHandler("some", typeof(CustomExtensionType));

            Assert.IsTrue(thingTypeRegistrarInternal.RegisteredExtensionHandlers.Count == 1);
        }
Ejemplo n.º 3
0
        public void WhenApplicationSpecificTypesRegistered()
        {
            var thingTypeRegistrarInternal = new ThingTypeRegistrar();

            thingTypeRegistrarInternal.RegisterApplicationSpecificHandler("some", "some-tag", typeof(CustomThingType));

            Assert.IsTrue(thingTypeRegistrarInternal.RegisteredAppSpecificHandlers.Count == 1);
        }