public void TestWhenPersistentMessagesIsFalse() { var timeoutStrategy = new TimeoutStrategy(new ConnectionConfiguration { Timeout = 10 }); Assert.AreEqual(10, timeoutStrategy.GetTimeoutSeconds(typeof(MessageWithoutTimeoutAttribute))); }
public void TestWhenMessagetWithAttribute() { var timeoutStrategy = new TimeoutStrategy(new ConnectionConfiguration { Timeout = 10 }); Assert.AreEqual(90, timeoutStrategy.GetTimeoutSeconds(typeof(MessageWithTimeoutAttribute))); }
public void TestWhenPersistentMessagesIsFalse() { var timeoutStrategy = new TimeoutStrategy(new ConnectionConfiguration { Timeout = 10 }); Assert.AreEqual(10, timeoutStrategy.GetTimeoutSeconds(typeof(MessageWithoutTimeoutAttribute))); }
public void TestWhenMessagetWithAttribute() { var timeoutStrategy = new TimeoutStrategy(new ConnectionConfiguration {Timeout = 10}); Assert.AreEqual(90, timeoutStrategy.GetTimeoutSeconds(typeof(MessageWithTimeoutAttribute))); }