Пример #1
0
 private void ClaimCircuitryWarranty(Action action)
 {
     Circuitry
     .WhenSome()
     .Do(c => CircuitryWarranty.Claim(c.DefectDetectedOn, action))
     .Execute();
 }
 public void ClaimCircuitryWarranty(Action onValidClaim)
 {
     Circuitry.Do(circuitry =>
                  CircuitryWarranty.Claim(circuitry.DefectDetectedOn,
                                          onValidClaim) // These call may end in NullReferenceException; Circuitry object might be null;
                  );
 }