Exemplo n.º 1
0
        public static MapViewController Create(MapView mapView, Model model)
        {
            MapViewController mapViewController = new MapViewController(mapView);

            model.mapViewPosition.AddObserver(mapViewController);

            return(mapViewController);
        }
Exemplo n.º 2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void repaintTest()
        public virtual void repaintTest()
        {
            DummyMapView dummyMapView = new DummyMapView();
            Model        model        = new Model();

            MapViewController.create(dummyMapView, model);
            Assert.assertEquals(0, dummyMapView.repaintCounter);

            model.mapViewPosition.ZoomLevel = (sbyte)1;
            // this does not hold with zoom animation
            // Assert.assertEquals(1, dummyMapView.repaintCounter);
        }