Esempio n. 1
0
		public Tests()
		{
			var source = new ResourceValidatorSource(GetType().Assembly, "Testing.PostTest.Fixie.Schemas.{messageType}.json");

			_queue = new InMemoryMessageReader();
			_output = new InMemoryValidationOutput();

			_monitor = new QueueMonitor(_queue, new DirectMessageConverter(), new MessageValidator(source), _output);
			_monitor.Start();
		}
Esempio n. 2
0
        public AcceptanceTests()
        {
            _messages = new InMemoryMessageReader();
            _output = new InMemoryValidationOutput();
            _validators = new InMemoryValidationSource();

            var converter = new DirectMessageConverter();
            var validator = new MessageValidator(_validators);

            _queueMonitor = new QueueMonitor(_messages, converter, validator, _output);
            _queueMonitor.Start();
        }