Remove() public method

Removes the specified callback.
Channel is disposing.
public Remove ( System.Guid callbackID ) : bool
callbackID System.Guid The callback ID.
return bool
        public void Remove_Where_ItemsDoesntExist_Expect_False()
        {
            ExecutionStatusCallbackDispatcher _executionStatusCallbackDispatcher = new ExecutionStatusCallbackDispatcher();

            Guid guid = Guid.NewGuid();

            bool expected = false;
            bool actual = _executionStatusCallbackDispatcher.Remove(guid);

            Assert.AreEqual(expected, actual);
        }
        public void Remove_Where_ItemsExists_Expect_True()
        {
            ExecutionStatusCallbackDispatcher _executionStatusCallbackDispatcher = new ExecutionStatusCallbackDispatcher();

            Guid guid = Guid.NewGuid();
            Action<ExecutionStatusCallbackMessage> callback = m => { };
            _executionStatusCallbackDispatcher.Add(guid, callback);

            bool expected = true;
            bool actual = _executionStatusCallbackDispatcher.Remove(guid);

            Assert.AreEqual(expected, actual);
        }