Example #1
0
        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();
        }
Example #2
0
 public void AddPoint(IPoint point)
 {
     _uniqueEidConstrainer.Add(point.Eid, point);
     _graph.Add(point);
     _pointSubscriber.SubscribeToPoint(point);
 }