public void TestRemove()
        {
            var instance = Model.CreateNew();
            var key      = "TestRemove";

            dict.Add(key, instance);
            Assert.True(dict.ContainsKey(key));
            Assert.True(dict.Remove(key));
            Assert.False(dict.ContainsKey(key));
        }
Beispiel #2
0
        public static void RemoveFromDictionary(string command, RedisDictionary redisDictionary)
        {
            int wordStartIndex = command.IndexOf(' ') + 1;

            string word = command.Substring(wordStartIndex, command.Length - wordStartIndex).Trim();

            redisDictionary.Remove(word);
        }
Beispiel #3
0
 public void Remove(string id)
 {
     Logger.Log("Removing active trip " + id);
     dict.Remove(id);
 }