public void AddPoint_InsertsIntoUnderlyingGraph() { var eid = 1; var point = A.Fake <IPoint>(); A.CallTo(() => point.Eid).Returns(eid); _pointGraph.AddPoint(point); A.CallTo(() => _underlyingDirectedGraph.Add(point)).MustHaveHappened(); }
public void AddPoint(IPoint point) { _uniqueEidConstrainer.Add(point.Eid, point); _graph.Add(point); _pointSubscriber.SubscribeToPoint(point); }