public void Setup() { messagePublisherMock = new Mock <IMessagePublisher>(); loggerMock = new Mock <ILogger>(); outgoingQueue = new OutgoingQueue(loggerMock.Object, messagePublisherMock.Object); outgoingQueue.Start(); }
public void Setup() { messagePublisherMock = MockRepository.GenerateMock <IMessagePublisher>(); loggerMock = MockRepository.GenerateMock <ILogger>(); outgoingQueue = new OutgoingQueue(loggerMock, messagePublisherMock); outgoingQueue.Start(); }
public void Setup() { ordereRepositoryMock = MockRepository.GenerateMock <IOrderRepository>(); outgoingQueueMock = MockRepository.GenerateMock <IOutgoingQueue>(); dateServiceMock = MockRepository.GenerateMock <IDateService>(); orderDispatcherMock = MockRepository.GenerateMock <IOrderDispatcher>(); serializer = new ProtobufSerializer(); }
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 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 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>(); orderRepositoryMock = MockRepository.GenerateMock<IOrderRepository>(); loggerMock = MockRepository.GenerateMock<ILogger>(); }
public IncomingMessageProcessor(IOutgoingQueue outgoingQueue) { }
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() { limitOrderMatchingAlgorithmMock = MockRepository.GenerateMock<ILimitOrderMatchingAlgorithm>(); marketOrderMatchingAlgorithmMock = MockRepository.GenerateMock<IMarketOrderMatchingAlgorithm>(); outgoingQueueMock = MockRepository.GenerateMock<IOutgoingQueue>(); }
public void Setup() { outgoingQueueMock = MockRepository.GenerateMock <IOutgoingQueue>(); }
public void Setup() { messagePublisherMock = MockRepository.GenerateMock<IMessagePublisher>(); loggerMock = MockRepository.GenerateMock<ILogger>(); outgoingQueue = new OutgoingQueue(loggerMock, messagePublisherMock); outgoingQueue.Start(); }