static TestExchangeEmailDesignerViewModel CreateViewModel(ModelItem modelItem, IEventAggregator eve, bool isemptySource = false)
        {
            var mockModel    = new TestExchangeServiceModel(isemptySource);
            var resourceMock = new Mock <IResourceModel>();

            resourceMock.Setup(res => res.DataList).Returns("<DataList><var Description=\"\" IsEditable=\"{0}\" ColumnIODirection=\"{1}\" /><a Description=\"\" IsEditable=\"{0}\" ColumnIODirection=\"{1}\" /><b Description=\"\" IsEditable=\"{0}\" ColumnIODirection=\"{1}\" /><h Description=\"\" IsEditable=\"{0}\" ColumnIODirection=\"{1}\" /><r Description=\"\" IsEditable=\"{0}\" ColumnIODirection=\"{1}\" /><rec Description=\"\" IsEditable=\"{0}\" ColumnIODirection=\"{1}\" ><set Description=\"\" IsEditable=\"{0}\" ColumnIODirection=\"{1}\" /></rec></DataList>");
            var dataListVM = new Mock <IDataListViewModel>();

            dataListVM.Setup(vm => vm.Resource).Returns(resourceMock.Object);
            DataListSingleton.Instance.ActiveDataList = dataListVM.Object;
            return(CreateViewModel(modelItem, mockModel, eve));
        }
        static TestExchangeEmailDesignerViewModel CreateViewModel(ModelItem modelItem, IEventAggregator eve, bool isemptySource = false)
        {
            var mockModel = new TestExchangeServiceModel(isemptySource);

            return(CreateViewModel(modelItem, mockModel, eve));
        }