public void GetConfigurationStringTest()
 {
     var target = new DocumentProcessViewConfigurator(); 
     var expected = string.Empty;
     var actual = target.GetConfigurationString();
     Assert.AreNotEqual(expected, actual);
 }
 public void DocumentProcessViewConfiguratorConstructorTest()
 {
     var target = new DocumentProcessViewConfigurator();
     Assert.AreNotEqual(target, null);
     target.FilterGuid = Guid.NewGuid();
     TestsHelper.TestPublicPropertiesGetSet(target);
 }
        /// <summary>
        /// Initializes the specified view configurator.
        /// </summary>
        /// <param name="viewConfigurator">The view configurator.</param>
        /// <param name="parentViewModel">The parent view model.</param>
        public void Init(IProcessViewConfigurator viewConfigurator, ProcessViewsViewModel parentViewModel)
        {
            _viewConfigurator = (DocumentProcessViewConfigurator)viewConfigurator;
            RaisePropertyChanged(() => ViewConfigurator);

            _parentViewModel = parentViewModel;
            RaisePropertyChanged(() => Parent);
        }
        /// <summary>
        /// Called when [after add process view classes].
        /// </summary>
        /// <param name="assemblyCode">The assembly code.</param>
        /// <param name="process">The process.</param>
        /// <param name="assemblyGenerator">The assembly generator.</param>
        public override void OnAfterAddProcessViewClasses(StringBuilder assemblyCode, IProcessDefinition process, ServerAssemblyGenerator assemblyGenerator)
        {
            base.OnAfterAddProcessViewClasses(assemblyCode, process, assemblyGenerator);

            foreach (var processView in process.ProcessViews)
            {
                if (processView.ViewType != ProcessViewType.Document)
                    continue;

                var viewConfig = new DocumentProcessViewConfigurator();
                viewConfig.SetConfigurationString(processView.Configuration);
            }
        }
 public void SetConfigurationStringTest()
 {
     var target = new DocumentProcessViewConfigurator(); // TODO: Initialize to an appropriate value
     var configurationString = target.GetConfigurationString(); // TODO: Initialize to an appropriate value
     target.SetConfigurationString(configurationString);
     var expected = configurationString;
     var actual = target.GetConfigurationString();
     Assert.AreEqual(expected, actual);
 }
 public void RaiseConfigurationChangedTest()
 {
     var target = new DocumentProcessViewConfigurator(); // TODO: Initialize to an appropriate value
     target.RaiseConfigurationChanged();
     Assert.Inconclusive("A method that does not return a value cannot be verified.");
 }
        /// <summary>
        /// Creates the configurator.
        /// </summary>
        /// <returns>IProcessViewConfigurator.</returns>
        public IProcessViewConfigurator CreateConfigurator()
        {
            var result = new DocumentProcessViewConfigurator();

            return result;
        }