diff --git a/Tests/TransientFaultHandling.Bvt.Tests/TestObjects/MockErrorDetectionStrategy.cs b/Tests/TransientFaultHandling.Bvt.Tests/TestObjects/MockErrorDetectionStrategy.cs index 1620f84..e0abb0b 100644 --- a/Tests/TransientFaultHandling.Bvt.Tests/TestObjects/MockErrorDetectionStrategy.cs +++ b/Tests/TransientFaultHandling.Bvt.Tests/TestObjects/MockErrorDetectionStrategy.cs @@ -2,12 +2,6 @@ public class MockErrorDetectionStrategy : ITransientErrorDetectionStrategy { - public MockErrorDetectionStrategy() - { - this.CallCount = 0; - this.ThreadIdList = new List(); - } - public bool IsTransient(Exception ex) { this.ThreadIdList.Add(Thread.CurrentThread.ManagedThreadId); @@ -25,7 +19,7 @@ ex switch _ => false }; - public int CallCount { get; set; } + public int CallCount { get; set; } = 0; - public List ThreadIdList { get; set; } + public List ThreadIdList { get; set; } = []; } \ No newline at end of file