public OrderDispatcher(IOutgoingQueue outgoingQueue, ILogger logger, IDateService dateService, IOrderRepository orderRepository)
 {
     this.outgoingQueue = outgoingQueue;
     this.logger = logger;
     this.dateService = dateService;
     this.orderRepository = orderRepository;
     OrderBooks = new Dictionary<string, IOrderBook>();
 }
 public IncomingMessageProcessor(IOrderRepository ordeRepository, IOutgoingQueue outgoingQueue, IDateService dateService, IOrderDispatcher dispatcher, ISerializer serializer)
 {
     this.ordeRepository = ordeRepository;
     this.outgoingQueue = outgoingQueue;
     this.dateService = dateService;
     this.dispatcher = dispatcher;
     this.serializer = serializer;
     queueBuffer = new byte[512];
 }
 public void Setup()
 {
     outgoingQueueMock = MockRepository.GenerateMock<IOutgoingQueue>();
     orderRepositoryMock = MockRepository.GenerateMock<IOrderRepository>();
     loggerMock = MockRepository.GenerateMock<ILogger>();
 }
 public void Setup()
 {
     outgoingQueueMock = MockRepository.GenerateMock<IOutgoingQueue>();
 }
 public void Setup()
 {
     limitOrderMatchingAlgorithmMock = MockRepository.GenerateMock<ILimitOrderMatchingAlgorithm>();
     marketOrderMatchingAlgorithmMock = MockRepository.GenerateMock<IMarketOrderMatchingAlgorithm>();
     outgoingQueueMock = MockRepository.GenerateMock<IOutgoingQueue>();
 }
 public void Setup()
 {
     messagePublisherMock = MockRepository.GenerateMock<IMessagePublisher>();
     loggerMock = MockRepository.GenerateMock<ILogger>();
     outgoingQueue = new OutgoingQueue(loggerMock, messagePublisherMock);
     outgoingQueue.Start();
 }