public void ApplyIdentityGenerator()
        {
            var pattern = new IdentityPoidPattern();

            pattern.Get(typeof(TestEntity).GetProperty("Int")).Satisfy(
                poidi => poidi.Strategy == PoIdStrategy.Identity && poidi.Params == null);
        }
        public void NoMatchWithOthers()
        {
            var pattern = new IdentityPoidPattern();

            pattern.Match(typeof(TestEntity).GetProperty("Guid")).Should().Be.False();
            pattern.Match(typeof(TestEntity).GetProperty("Short")).Should().Be.False();
        }
        public void MatchWithAnyIntOrLong()
        {
            var pattern = new IdentityPoidPattern();

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