Ejemplo n.º 1
0
        public void TestRegisterTypeLoadsKnownActionsInClasses()
        {
            var container = new Mock <IObjectContainer>(MockBehavior.Strict);

            container.Setup(c => c.Resolve(typeof(TestAction), null)).Returns(new TestAction());

            var repository = new ActionRepository(container.Object);

            repository.RegisterType(typeof(TestAction));

            container.VerifyAll();
        }
Ejemplo n.º 2
0
        public void TestRegisterTypeLoadsKnownActionsInClasses()
        {
            var container = new Mock<IObjectContainer>(MockBehavior.Strict);
            container.Setup(c => c.Resolve(typeof(TestAction), null)).Returns(new TestAction());

            var repository = new ActionRepository(container.Object);

            repository.RegisterType(typeof(TestAction));

            container.VerifyAll();
        }