public NetworkCoverageSegmentLayer()
        {
            Name = "Cells";
            DataSource = new NetworkCoverageFeatureCollection
            {
                NetworkCoverageFeatureType = NetworkCoverageFeatureType.Segments
            };

            segmentRenderer = new NetworkCoverageSegmentRenderer();
            CustomRenderers.Add(segmentRenderer);
        }
        public void DelayRenderingWhenNetworkIsEditingIsTrue()
        {
            var network = new Network();
            network.BeginEdit(new DefaultEditAction("edit"));
            var layer = new NetworkCoverageSegmentLayer
                            {
                                DataSource = new NetworkCoverageFeatureCollection
                                                 {
                                                     NetworkCoverage =
                                                         new NetworkCoverage {Network = network}
                                                 }
                            };

            var renderer = new NetworkCoverageSegmentRenderer();
            var result = renderer.Render(null, null, layer);

            Assert.IsTrue(result); // True because rendering did not fail
            Assert.IsTrue(layer.RenderRequired); // True, to indicate rendering is delayed
        }
 public NetworkCoverageSegmentLayer()
 {
     //Coverage = coverage;
     segmentRenderer = new NetworkCoverageSegmentRenderer();
     CustomRenderers.Add(segmentRenderer);
 }