public void ShouldBeAbleToHandleASpout()
 {
     var spout = Substitute.For<ISpout>();
     var subjectUnderTest = new StormFail();
     subjectUnderTest.BeProcessesBy(spout);
     spout.Received().Fail(subjectUnderTest);
 }
 public void ShouldNotHandleTupleInBolt()
 {
     var subjectUnderTest = new StormFail();
     var bolt = Substitute.For<IBolt>();
     Assert.That(() => subjectUnderTest.BeProcessesBy(bolt),
         Throws.InstanceOf<NotImplementedException>());
 }
Пример #3
0
 public virtual void Fail(StormFail stormFail)
 {
 }