public void PropertiesTest()
 {
     var classUnderTest = new NewLayoutViewModel();
     TestsHelper.TestPublicDeclaredPropertiesGetSet(classUnderTest, true);
 }
        public void ApplyingLayoutPreserveFiltering()
        {
            var vm = GetNewSearchListVm();
            vm.LayoutListVM = new LayoutListViewModel();

            var selectedLayout = new NewLayoutViewModel();
            Mock.Arrange(() => vm.SelectedLayout).Returns(selectedLayout);

            var filter = new FilterViewModel(FilterType.UserFilter) { Name = "Description 2" };

            Mock.Arrange(() => vm.AppliedFilter).Returns(filter);

            var isCalled = false;
            Mock.Arrange(() => vm.RefreshSearchList(vm.AppliedFilter)).DoInstead(() => isCalled = true);

            var layout = new NewLayoutViewModel();
            Mock.Arrange(() => layout.Parse(Arg.AnyString)).DoNothing();
            Mock.Arrange(() => layout.LayoutColumns).Returns(new List<IGridColumn>());

            vm.ApplyLayout(layout, false, false);

            Assert.IsTrue(isCalled);
        }
 /// <summary>
 /// Creates the layout vm.
 /// </summary>
 /// <param name="layout">The layout.</param>
 /// <returns>ILayoutViewModel.</returns>
 public ILayoutViewModel CreateLayoutVM(ProcessLayoutEdit layout)
 {
     var layoutVm = new NewLayoutViewModel(layout) { Name = layout.Name, Id = layout.Id, LayoutString = layout.LayoutInfo };
     //DeploymentService.Container.ComposeParts(sectionVM);
     DeploymentService.Container.SatisfyImportsOnce(layoutVm);
     return layoutVm;
 }