public void Entity_AgainstNull() { var customer1 = new Customer { CustomerId = 1 }; EqualityTests.TestAgainstNull(customer1 as EntityBase <Customer>); }
public void Metadata_MemberAccessorBase_NotNull() { var metadata = MetadataProvider.GetMetadata <MetadataType>(); var property = metadata.GetProperty("Property"); Assert.IsNotNull(property); Assert.IsInstanceOf(typeof(IMemberAccessor), property); EqualityTests.TestAgainstNull(property as MemberAccessorBase); }