public MessageRoutingSystemErrorService()
 {
     _ruleService = new RuleService();
     _poolService = new PoolService();
     _messagePoolService = new MessagePoolService();
     _messageService = new MessageService();
     _applicationService = new ApplicationService();
     _machineService = new MachineService();
     _priorityService = new PriorityService();
 }
 public MessageRoutingSystemErrorService(IRuleService ruleService, IPoolService poolService,
     IMessagePoolService messagePoolService, IMessageService messageService,
     IApplicationService applicationService, IMachineService machineService)
 {
     _ruleService = ruleService;
     _poolService = poolService;
     _messagePoolService = messagePoolService;
     _messageService = messageService;
     _applicationService = applicationService;
     _machineService = machineService;
 }
        public void Initialize()
        {
            MockUow = new Mock<IMessageRoutingSystemUow>();
            MockUow.Setup(x => x.Rules).Returns(MockRepoRule.Object);
            MockUow.Setup(x => x.Pools).Returns(MockRepoPool.Object);
            MockUow.Setup(x => x.Applications).Returns(MockRepoApplication.Object);
            MockUow.Setup(x => x.ApplicationGroups).Returns(MockRepoApplicationGroup.Object);
            MockUow.Setup(x => x.ApplicationGroupMaps).Returns(MockRepoApplicationGroupMap.Object);
            MockUow.Setup(x => x.Machines).Returns(MockRepoMachine.Object);
            MockUow.Setup(x => x.MachineGroups).Returns(MockRepoMachineGroup.Object);
            MockUow.Setup(x => x.MachineGroupMaps).Returns(MockRepoMachineGroupMap.Object);
            MockUow.Setup(x => x.MessagePools).Returns(MockRepoMessagePool.Object);
            MockUow.Setup(x => x.Messages).Returns(MockRepoMessage.Object);
            MockUow.Setup(x => x.Priorities).Returns(MockRepoPriority.Object);

            RuleService = new RuleService(MockUow.Object);
            PoolService = new PoolService(MockUow.Object);
            ApplicationService = new ApplicationService(MockUow.Object);
            MachineService = new MachineService(MockUow.Object);
            MessagePoolService = new MessagePoolService(MockUow.Object);
            MessageService = new MessageService(MockUow.Object);
            PriorityService = new PriorityService(MockUow.Object);
        }
 public MessagePoolController(IMessagePoolService messagePoolService)
 {
     this.messagePoolService = messagePoolService;
 }
 public MessagePoolServiceTests()
 {
     _messagePoolService = new MessagePoolService();
     _uow = new MessageRoutingSystemUow();
 }