public void TestInstantiate()
        {
            IWorkflowConfiguration workflowConfiguration = new WorkflowConfiguration { Name = "Testing 123" };

            Assert.IsFalse(workflowConfiguration.IsConfigurationActive);
            Assert.IsNotNull(workflowConfiguration.Name);

            Assert.IsNotNull(((IWorkflowInstantiator) workflowConfiguration).CreateInstance());

        }
        public void BasicInstantiation()
        {
            IWorkflowConfiguration c = new WorkflowConfiguration {Name = "Test", IsConfigurationActive = true};

            IWorkflowTask t = new EndWorkflowTask();
            c.StartTask = t;
            c.Tasks.Add(t);

            var i = c.CreateInstance();

        }
        public void TestUiFromEntityInstance()
        {
         
            // apparently need to instantiate something for assembly to be loaded ??
            var ui = new NamePropertyUi();
            var types = Application.Reflection.Helper.Instance.TypesImplementingInterface(typeof(IWorkflowEntityUi));

            var w = new WorkflowConfiguration();


            foreach(var x in types)
            {
                var ux = (IWorkflowEntityUi) Activator.CreateInstance(x);
                Console.WriteLine(ux.SupportsType(w));
            }

        }
        public void TestSaveExtended()
        {
            var r = WorkflowConfigurationRepository.Instance;
            var a = new WorkflowConfiguration { Name = "This is custom" };

            r.Create(a);
        }