public void References_of_the_persistent_entity_should_also_be_mapped()
        {
            var sessionFactory = SessionFactoryHelper.Build(new[]
            {
                typeof(RelatedClass),
                typeof(TestSagaData),
                typeof(TestSaga)
            });

            Assert.NotNull(sessionFactory.GetEntityPersister(typeof(RelatedClass).FullName));
        }
 public void Should_throw_if_class_is_derived()
 {
     Assert.Throws <MappingException>(() =>
     {
         SessionFactoryHelper.Build(new[]
         {
             typeof(MyDerivedClassWithRowVersionSaga),
             typeof(MyDerivedClassWithRowVersion)
         });
     });
 }
 public void SetUp()
 {
     sessionFactory = SessionFactoryHelper.Build(
         new[]
     {
         typeof(TestSaga2),
         typeof(TestSaga2ActualSaga),
         typeof(ContainSagaData),
         typeof(SagaWithNestedTypeActualSaga),
         typeof(SagaWithNestedType),
         typeof(SagaWithNestedType.Customer),
         typeof(SagaWithNestedSagaData),
         typeof(SagaWithNestedSagaData.NestedSagaData)
     });
 }
        public void SetUp()
        {
            sessionFactory = SessionFactoryHelper.Build();

            persisterForTestSaga = sessionFactory.GetEntityPersisterFor <TestSaga>();
        }
示例#5
0
 public void SetUp()
 {
     sessionFactory = SessionFactoryHelper.Build();
 }