Ejemplo n.º 1
0
        public void VerifyHistoryOfMixedEntity()
        {
            var ver1 = new MixedOverrideEntity {
                Id = mixedEntityId, Number1 = 1, Str1 = null, Str2 = "data 2"
            };

            AuditReader().Find <MixedOverrideEntity>(mixedEntityId, 1)
            .Should().Be.EqualTo(ver1);
        }
Ejemplo n.º 2
0
 protected override void Initialize()
 {
     using (var tx = Session.BeginTransaction())
     {
         var mixedEntity = new MixedOverrideEntity {
             Number1 = 1, Str1 = "data 1", Str2 = "data 2"
         };
         mixedEntityId = (int)Session.Save(mixedEntity);
         tx.Commit();
     }
 }