Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
        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();
        }