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)); }
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)); }
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; }
public override void SetupEntity(TestSaga saga) { entity.PolymorphicRelatedProperty = new PolymorphicProperty { SomeInt = 9 }; }
public override void SetupEntity(TestSaga saga) { saga.DateTimeProperty = DateTime.Parse("12/02/2010 12:00:00.01"); }