private void GenerateSut(Boolean initialize = true) { snapshottable = sut = new AggregateTestSampleAggregate1(); sourcedAggregate = sut; if (initialize) { sut.Init("AggregateTestSampleAggregate1_42"); } }
public void Verify_serialization_of_user_state() { AggregateTestSampleAggregate1 aggregate = new AggregateTestSampleAggregate1(); aggregate.Init(new AggregateTestSampleAggregate1Id(1)); aggregate.Touch(); var snapshot = ((ISnapshottable)aggregate).GetSnapshot(); var serialized = snapshot.ToJson(); Assert.That(!serialized.Contains(" \"_t\" : \"AggregateTestSampleAggregate1Id\"")); }
public void SetUp() { sut = new AggregateTestSampleAggregate1(); sut.Init("AggregateTestSampleAggregate1_42"); }