public void Verify_basic_save_of_an_event() { Dea a = new Dea() { Paperoga = "Yes", Test = 2 }; Deb b = new Deb() { BlaBlaList = new List <String>() { "one", "two", "three" }, Number = 34.5 }; PersistedDomainEvent evta = new PersistedDomainEvent() { CommitSequence = 1, DomainEvent = a, EventType = a.GetType().FullName, Timestamp = DateTime.Now, }; sut.SaveEvent(evta); var single = sut.LoadEvents(a.GetType()).Single(); single.Should().Be.OfType <Dea>(); }
public void Verify_basic_save_of_an_event() { Dea a = new Dea() { Paperoga = "Yes", Test = 2 }; Deb b = new Deb() { BlaBlaList = new List<String>() { "one", "two", "three" }, Number = 34.5 }; PersistedDomainEvent evta = new PersistedDomainEvent() { CommitSequence = 1, DomainEvent = a, EventType = a.GetType().FullName, Timestamp = DateTime.Now, }; sut.SaveEvent(evta); var single = sut.LoadEvents(a.GetType()).Single(); single.Should().Be.OfType<Dea>(); }