public void LayerSelectionHandlerExecuteTest()
        {
            LayerDetailsViewModel layerDetailsViewModel = new LayerDetailsViewModel();

            layerDetailsViewModel.LayerSelectionChangedEvent += new EventHandler(LayerModelLayerSelectionChangedEvent);

            LayerMapDropDownViewModel layerMapDropDown = new LayerMapDropDownViewModel();

            layerMapDropDown.ID   = "1";
            layerMapDropDown.Name = "Select One";

            Layer layer = new Layer();

            layer.Name = "Layer1";

            LayerMap layerMap = new LayerMap(layer);

            layerMap.MapType                   = LayerMapType.Local;
            layerMap.HeaderRowData             = new Collection <string>();
            layerMap.MappedColumnType          = new Collection <ColumnType>();
            layerDetailsViewModel.Currentlayer = layerMap;

            LayerDetailsViewModel_Accessor.LayerSelectionHandler target = new LayerDetailsViewModel_Accessor.LayerSelectionHandler(layerDetailsViewModel);
            target.Execute(layerMapDropDown);
            Assert.IsNull(layerDetailsViewModel.Currentlayer);
        }
        public void LayerSelectionHandlerConstructorTest()
        {
            LayerDetailsViewModel layerDetailsViewModel = new LayerDetailsViewModel();

            LayerDetailsViewModel_Accessor.LayerSelectionHandler target = new LayerDetailsViewModel_Accessor.LayerSelectionHandler(layerDetailsViewModel);
            Assert.AreEqual(target.parent, layerDetailsViewModel);
        }
        public void LayerSelectionHandlerExecuteTest()
        {
            LayerDetailsViewModel layerDetailsViewModel = new LayerDetailsViewModel();
            layerDetailsViewModel.LayerSelectionChangedEvent += new EventHandler(LayerModelLayerSelectionChangedEvent);

            LayerMapDropDownViewModel layerMapDropDown = new LayerMapDropDownViewModel();
            layerMapDropDown.ID = "1";
            layerMapDropDown.Name = "Select One";

            Layer layer = new Layer();
            layer.Name = "Layer1";

            LayerMap layerMap = new LayerMap(layer);
            layerMap.MapType = LayerMapType.Local;
            layerMap.HeaderRowData = new Collection<string>();
            layerMap.MappedColumnType = new Collection<ColumnType>();
            layerDetailsViewModel.Currentlayer = layerMap;

            LayerDetailsViewModel_Accessor.LayerSelectionHandler target = new LayerDetailsViewModel_Accessor.LayerSelectionHandler(layerDetailsViewModel);
            target.Execute(layerMapDropDown);
            Assert.IsNull(layerDetailsViewModel.Currentlayer);
        }
 public void LayerSelectionHandlerConstructorTest()
 {
     LayerDetailsViewModel layerDetailsViewModel = new LayerDetailsViewModel();
     LayerDetailsViewModel_Accessor.LayerSelectionHandler target = new LayerDetailsViewModel_Accessor.LayerSelectionHandler(layerDetailsViewModel);
     Assert.AreEqual(target.parent, layerDetailsViewModel);
 }