public void When_InValidAnalogThresholdArrivesWithPinParmCharacters_ThenMessagedetailsAreNotPublished()
 {
     _count = 0;
     AnalogThreshholdProcessor processor = new AnalogThreshholdProcessor();
     _container.ComposeParts(processor);
     IMessage message = new Message(processor.MessageType, "1:A:2:3");
     processor.Execute(message);
     Assert.AreEqual(0, _count, "The message fired and it should not have");
 }
 public void When_InValidAnalogThresholdMessageWithTooManyParmsArrives_ThenMessagedetailsArePublished()
 {
     _count = 0;
     AnalogThreshholdProcessor processor = new AnalogThreshholdProcessor();
     _container.ComposeParts(processor);
     IMessage message = new Message(processor.MessageType, "1:1:10:12:BLAH");
     processor.Execute(message);
     Assert.AreEqual(0, _count, "The message did fire and it should not have");
 }
 public void When_ValidAnalogThresholdMessageArrives_ThenMessagedetailsArePublished()
 {
     _count = 0;
     AnalogThreshholdProcessor processor = new AnalogThreshholdProcessor();
     _container.ComposeParts(processor);
     IMessage message = new Message(processor.MessageType,"1:1:10:12");
     processor.Execute(message);
     Assert.AreEqual(1,_count,"The message did not fire");
 }
 public void When_InValidAnalogThresholdMessageArrives_ThenMessagedetailsAreNotPublished()
 {
     _count = 0;
     AnalogThreshholdProcessor processor = new AnalogThreshholdProcessor();
     _container.ComposeParts(processor);
     IMessage message = new Message("BLAH", "10");
     processor.Execute(message);
     Assert.AreEqual(0, _count, "The message fired and it should not have");
 }