public void BeforeEachTest()
 {
     sessionFactory = new DbContextSessionFactory();
     uow = new DbUnitOfWork(sessionFactory);
     persister = new DbSagaPersister(sessionFactory);
     saga = GetTestSaga();
 }
Exemplo n.º 2
0
 public void BeforeEachTest()
 {
     sessionFactory = new DbContextSessionFactory();
     uow            = new DbUnitOfWork(sessionFactory);
     persister      = new DbSagaPersister(sessionFactory);
     saga           = GetTestSaga();
 }
Exemplo n.º 3
0
 private void AssertSagaIsEqual(TestSagaData sagaFromDb)
 {
     Assert.AreEqual(saga.Id, sagaFromDb.Id);
     Assert.AreEqual(saga.BoolProperty, sagaFromDb.BoolProperty);
     Assert.AreEqual(saga.CorrelationId, sagaFromDb.CorrelationId);
     Assert.AreEqual(saga.DecimalProperty, sagaFromDb.DecimalProperty);
     Assert.AreEqual(saga.IntProperty, sagaFromDb.IntProperty);
     Assert.AreEqual(saga.ListIntProperty, sagaFromDb.ListIntProperty);
     Assert.AreEqual(saga.OriginalMessageId, sagaFromDb.OriginalMessageId);
     Assert.AreEqual(saga.Originator, sagaFromDb.Originator);
     Assert.AreEqual(saga.StringProperty, sagaFromDb.StringProperty);
 }
 private void AssertSagaIsEqual(TestSagaData sagaFromDb)
 {
     Assert.AreEqual(saga.Id, sagaFromDb.Id);
     Assert.AreEqual(saga.BoolProperty, sagaFromDb.BoolProperty);
     Assert.AreEqual(saga.CorrelationId, sagaFromDb.CorrelationId);
     Assert.AreEqual(saga.DecimalProperty, sagaFromDb.DecimalProperty);
     Assert.AreEqual(saga.IntProperty, sagaFromDb.IntProperty);
     Assert.AreEqual(saga.ListIntProperty, sagaFromDb.ListIntProperty);
     Assert.AreEqual(saga.OriginalMessageId, sagaFromDb.OriginalMessageId);
     Assert.AreEqual(saga.Originator, sagaFromDb.Originator);
     Assert.AreEqual(saga.StringProperty, sagaFromDb.StringProperty);
 }