public void should_be_durable_from_fi() { theExpression.Worker("foo").HandlesMessage <M1>().IsDurable(); afterCompilingAgainstTheMessageTypes(); theWorkers.ShouldBeDurable(typeof(M1)).ShouldBeTrue(); theWorkers.ShouldBeDurable(typeof(M3)).ShouldBeTrue(); theWorkers.ShouldBeDurable(typeof(M4)).ShouldBeTrue(); theWorkers.ShouldBeDurable(typeof(M5)).ShouldBeFalse(); theWorkers.ShouldBeDurable(typeof(M1).ToMessageTypeName()).ShouldBeTrue(); theWorkers.ShouldBeDurable(typeof(M3).ToMessageTypeName()).ShouldBeTrue(); theWorkers.ShouldBeDurable(typeof(M4).ToMessageTypeName()).ShouldBeTrue(); theWorkers.ShouldBeDurable(typeof(M5).ToMessageTypeName()).ShouldBeFalse(); }
public void should_be_durable_with_attribute() { afterCompilingAgainstTheMessageTypes(); theWorkers.ShouldBeDurable(typeof(M3)).ShouldBeTrue(); theWorkers.ShouldBeDurable(typeof(M4)).ShouldBeTrue(); theWorkers.ShouldBeDurable(typeof(M5)).ShouldBeFalse(); theWorkers.ShouldBeDurable(typeof(M3).ToMessageAlias()).ShouldBeTrue(); theWorkers.ShouldBeDurable(typeof(M4).ToMessageAlias()).ShouldBeTrue(); theWorkers.ShouldBeDurable(typeof(M5).ToMessageAlias()).ShouldBeFalse(); }