public void All_DomainServices_implement_IDomainService()
        {
            var allHandlers           = InstallerTestHelper.GetAllHandlers(containerWithDomainServices);
            var DomainServiceHandlers = InstallerTestHelper.GetHandlersFor(typeof(IDomainService), containerWithDomainServices);

            Assert.IsNotEmpty(allHandlers);
            Assert.AreEqual(allHandlers, DomainServiceHandlers);
        }
Пример #2
0
        public void All_controllers_implement_IController()
        {
            var allHandlers        = InstallerTestHelper.GetAllHandlers(containerWithControllers);
            var controllerHandlers = InstallerTestHelper.GetHandlersFor(typeof(IController), containerWithControllers);

            Assert.IsNotEmpty(allHandlers);
            Assert.AreEqual(allHandlers, controllerHandlers);
        }