public void PatternMatch() { var pattern = new PoIdGuidStrategyPattern(); PropertyInfo pi = typeof(TestEntity).GetProperty("Id"); pi.Satisfy(p => !pattern.Match(p)); pi = typeof(TestEntity).GetProperty("PoId"); pi.Satisfy(p => pattern.Match(p)); }
public void PatternMatch() { var pattern = new PoIdGuidStrategyPattern(); PropertyInfo pi = typeof(TestEntity).GetProperty("Id"); pi.Satisfy(p => !pattern.Match(p)); pi = typeof(TestEntity).GetProperty("PoId"); pi.Satisfy(p => pattern.Match(p)); }