public void Processor_Status_Configured_True() { var subject = new RouterControlProcessor(_identification.Object, _inputGateway.Object, _handlerRepository.Object, _subscriptonsHelper.Object, _messageBuilder.Object); subject.Processor = new Mock<IProcessor>().Object; Assert.IsTrue(subject.Status == ProcessorStatus.Configured); }
public void Configured_LoadStoredSubscriptors_True() { var subject = new RouterControlProcessor(_identification.Object, _inputGateway.Object, _handlerRepository.Object, _subscriptonsHelper.Object, _messageBuilder.Object); subject.Processor = new Mock<IProcessor>().Object; _subscriptonsHelper.Verify(x => x.LoadStoredSubscriptors(It.IsAny<Identification>())); }
public void SetUp() { _subscriptonsHelper = new Mock<ISubscriptorsHelper>(); _identification = new Mock<Identification>(); _inputGateway = new Mock<IInputGateway<IControlMessage, MessageHeader>>(); _handlerRepository = new Mock<IHandlerRepository>(); _processor = new Mock<IProcessor>(); _messageBuilder = new Mock<IMessageBuilder>(); _subject = new RouterControlProcessor(_identification.Object, _inputGateway.Object, _handlerRepository.Object, _subscriptonsHelper.Object, _messageBuilder.Object) {Processor = _processor.Object}; }