public override void Setup()
        {
            base.Setup();

            entity = new TestSaga { Id = Guid.NewGuid() };

            SetupEntity(entity);

            WithASagaPersistenceUnitOfWork(p => p.Save(entity));

            WithASagaPersistenceUnitOfWork(p => savedEntity = p.Get<TestSaga>(entity.Id));
        }
Example #2
0
        public override void Setup()
        {
            base.Setup();

            entity = new TestSaga {
                Id = Guid.NewGuid()
            };

            SetupEntity(entity);

            WithASagaPersistenceUnitOfWork(p => p.Save(entity));

            WithASagaPersistenceUnitOfWork(p => savedEntity = p.Get <TestSaga>(entity.Id));
        }
Example #3
0
 public override void SetupEntity(TestSaga saga)
 {
     entity.TestComponent = new TestComponent {
         Property = "Prop"
     };
 }
 public override void SetupEntity(TestSaga saga)
 {
     entity.RelatedClass = new RelatedClass { ParentSaga = entity };
 }
 public abstract void SetupEntity(TestSaga saga);
 public override void SetupEntity(TestSaga saga)
 {
     entity.PolymorpicRelatedProperty = new PolymorpicProperty {SomeInt = 9};
 }
 public override void SetupEntity(TestSaga saga)
 {
     entity.Status = StatusEnum.AnotherStatus;
 }
Example #8
0
 public override void SetupEntity(TestSaga saga)
 {
     entity.PolymorphicRelatedProperty = new PolymorphicProperty {
         SomeInt = 9
     };
 }
Example #9
0
 public override void SetupEntity(TestSaga saga)
 {
     entity.RelatedClass = new RelatedClass {
         ParentSaga = entity
     };
 }
 public override void SetupEntity(TestSaga saga)
 {
     saga.DateTimeProperty = DateTime.Parse("12/02/2010 12:00:00.01");
 }
 public override void SetupEntity(TestSaga saga)
 {
     entity.TestComponent = new TestComponent { Property = "Prop" };
 }
Example #12
0
 public abstract void SetupEntity(TestSaga saga);