public void ApplyNativeGenerator() { var pattern = new NativePoidPattern(); pattern.Get(typeof(TestEntity).GetProperty("Int")).Satisfy( poidi => poidi.Strategy == PoIdStrategy.Native && poidi.Params == null); }
public void NoMatchWithOthers() { var pattern = new NativePoidPattern(); pattern.Match(typeof(TestEntity).GetProperty("Guid")).Should().Be.False(); pattern.Match(typeof(TestEntity).GetProperty("Short")).Should().Be.False(); }
public void MatchWithAnyIntOrLong() { var pattern = new NativePoidPattern(); pattern.Match(typeof(TestEntity).GetProperty("Int")).Should().Be.True(); pattern.Match(typeof(TestEntity).GetProperty("Long")).Should().Be.True(); }
public void NoMatchWithOthers() { var pattern = new NativePoidPattern(); pattern.Match(typeof(TestEntity).GetProperty("Guid")).Should().Be.False(); pattern.Match(typeof(TestEntity).GetProperty("Short")).Should().Be.False(); }
public void MatchWithAnyIntOrLong() { var pattern = new NativePoidPattern(); pattern.Match(typeof(TestEntity).GetProperty("Int")).Should().Be.True(); pattern.Match(typeof(TestEntity).GetProperty("Long")).Should().Be.True(); }
public void ApplyNativeGenerator() { var pattern = new NativePoidPattern(); pattern.Get(typeof(TestEntity).GetProperty("Int")).Satisfy( poidi => poidi.Strategy == PoIdStrategy.Native && poidi.Params == null); }