public void TestFixtureSetup()
 {
     _container = new ObjectContainer();
     //_container.Boot();
     _repository = _container.GetRepository();
     var commands = new GetCommands().Get();
     var handlers = _container.GetAllHandlers();
     foreach (var command in commands)
     {
         foreach (var handler in handlers.Where(h => h.CanHandle(command.GetType())))
         {
             handler.Handle(command);
         }
     }
 }
 public void TestFixtureSetUp()
 {
     var container = new ObjectContainer();
     container.Boot();
     _commandsSent = new GetCommands().Get().ToArray();
     var handlers = container.GetAllHandlers();
     foreach (var command in _commandsSent)
     {
         foreach (var handler in handlers.Where(h=>h.CanHandle(command.GetType())))
         {
             handler.Handle(command);
         }
     }
     container.Dispose();
     _batches = container.BatchesPersisted().ToArray();
 }
        public void TestFixtureSetup()
        {
            _container = new ObjectContainer();
            //_container.Boot();
            _repository = _container.GetRepository();
            var commands = new GetCommands().Get();
            var handlers = _container.GetAllHandlers();

            foreach (var command in commands)
            {
                foreach (dynamic handler in handlers.Where(h => h.CanHandle(command.GetType())))
                {
                    handler.Handle(command);
                }
            }
        }
        public void TestFixtureSetUp()
        {
            var container = new ObjectContainer();

            container.Boot();
            _commandsSent = new GetCommands().Get().ToArray();
            var handlers = container.GetAllHandlers();

            foreach (var command in _commandsSent)
            {
                foreach (dynamic handler in handlers.Where(h => h.CanHandle(command.GetType())))
                {
                    handler.Handle(command);
                }
            }
            container.Dispose();
            _batches = container.BatchesPersisted().ToArray();
        }