Beispiel #1
0
        public void Base_class_value_property_returns_same_as_strongly_typed_value_property()
        {
            var key = new SimpleEntityKey <int>(new Mock <IEntityType>().Object, 77);

            Assert.Equal(77, key.Value);
            Assert.Equal(77, ((EntityKey)key).Value);
        }
Beispiel #2
0
 private bool Equals(SimpleEntityKey <TKey> other)
 {
     return(_entityType == other._entityType &&
            EqualityComparer <TKey> .Default.Equals(_keyValue, other._keyValue));
 }