public void WhenRegisterTypeThenAddToExplicitHolder() { var orm = new ObjectRelationalMapper(); orm.Complex(typeof(MonetaryAmount)); orm.IsComplex(ForClass <MyClass> .Property(x => x.Amount)).Should().Be.True(); }
public void IsNotRecognizedAsComplex() { (typeof(Dummy)).GetProperty("TestSubEntity").Satisfy(te => !mapper.IsComplex(te)); (typeof(Dummy)).GetProperty("TestSubSubEntity").Satisfy(te => !mapper.IsComplex(te)); }