internal virtual void UnRegisterKey(object key, Int64 address, Session session, RecordManager recordManager, string indexName) { var index = new RecordIndex <ValueWithAddressIndexKey <TAttribute> >( this.Session, this.RecordManager, indexName, this.Session.SerializerResolver.SerializerFor <Node <ValueWithAddressIndexKey <TAttribute> > >() ); index.UnRegister((ValueWithAddressIndexKey <TAttribute>)key); }
internal override void UnRegisterKey(object key, Int64 address, Session session, RecordManager recordManager, string indexName) { var index = new RecordIndex <TID>( this.Session, recordManager, indexName, this.Session.SerializerResolver.SerializerFor <Node <TID> >() ); index.UnRegister((TID)key); }
public void UnRegister_Deletes_Original_Value() { _mockTree.Insert(1, 2); _index.UnRegister(1); Assert.AreEqual(1, _mockTree.Deleted[0]); }