public void It_retains_emitted_events() { var a = new MyAggregate(); a.Do(); Assert.AreEqual(1, a.Dehydrate().Count()); }
public void It_applies_emitted_event() { var a = new MyAggregate(); a.Do(); Assert.IsTrue(a.EventApplied); }
public void It_runs_the_event_through_ports() { var a = new MyAggregate(new MyPort()); a.Do(); var messages = a.ProcessPorts(); Assert.AreEqual(1, messages.Count()); }