public void MapFindsProcessTest() { var contextMap = new BoundedContextModel(); contextMap.WithAssemblyContaining <Location>(); Assert.IsTrue(contextMap.IsEventHandlerType(typeof(Movement))); }
public void MapEventTest() { var contextMap = new BoundedContextModel(); contextMap.WithAssemblyContaining <Location>(); Assert.IsTrue(contextMap.IsEventType(typeof(LocationCreated))); Assert.IsFalse(contextMap.IsCommandType(typeof(LocationCreated))); }
public void MapFindsAggregateTest() { var contextMap = new BoundedContextModel(); contextMap.WithAssemblyContaining <Movement>(); var aggregateType = (contextMap as IBoundedContextModel).GetAggregateType(typeof(CreateLocation)); Assert.IsNotNull(aggregateType); Assert.IsTrue(aggregateType == typeof(Location)); }