public static ProcessEdit CreatProcessWithBaseProcess(int id, IEnumerable<FieldEdit> fields)
        {
            var process = new ProcessEditMock(id);
            var processEditExtensionsMock = Mock.Create<ProcessEditExtensions>();
            process.ProcessEditExtensions = processEditExtensionsMock;
            var baseProcess = new ProcessEditMock(12, "Base Person", "BasePerson_p");
            processEditExtensionsMock = Mock.Create<ProcessEditExtensions>();
            baseProcess.ProcessEditExtensions = processEditExtensionsMock;
            var section = new SectionEditMock(1, "Test section");
           
            process.BaseProcess = baseProcess;
            process.BaseProcess.SectionList.Add(section);
            process.SectionList.Add(section);

            foreach (var field in fields)
            {
                process.BaseProcess.SectionList[0].FieldList.Add(field);
                process.SectionList[0].FieldList.Add(field);
            }

            return process;
        }
        public static ProcessEdit CreateProcess(int id, IEnumerable<FieldEdit> fields)
        {
            var process = new ProcessEditMock(id);
            var section = new SectionEditMock(1, "Test section");

            var processEditExtensionsMock = Mock.Create<ProcessEditExtensions>();
            process.ProcessEditExtensions = processEditExtensionsMock;

            process.SectionList.Add(section);

            foreach (var field in fields)
                process.SectionList[0].FieldList.Add(field);

            return process;
        }