public void Delete(ICall call) { if (call == null) throw new ArgumentNullException(nameof(call)); var callWrapper = _callWrappers.FirstOrDefault(w => !w.IsDeleted && call.Equals(w.Call)); if (callWrapper == null) { throw new SubstituteInternalException("CallCollection.Delete - collection doesn't contain the call"); } callWrapper.Delete(); }
public void Delete(ICall call) { if (call == null) { throw new ArgumentNullException(nameof(call)); } var callWrapper = _callWrappers.FirstOrDefault(w => !w.IsDeleted && call.Equals(w.Call)); if (callWrapper == null) { throw new SubstituteInternalException("CallCollection.Delete - collection doesn't contain the call"); } callWrapper.Delete(); }