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(); }
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(); }