public void Process(string fileName)
        {
            //TODO : manage the input directory name to have the relative path = package name

            var globalVariableProcess = new GlobalVariableParser().ParseVariable(fileName);
            var globalVariableBuilder = new GlobalVariableBuilder();
            var targetUnit            = new CodeCompileUnit();

            targetUnit.Namespaces.Add(globalVariableBuilder.Build(globalVariableProcess));

            this.sourceCodeGeneratorService.Generate(targetUnit);
        }
        public void SetUp()
        {
            builder      = new GlobalVariableBuilder();
            repo         = new GlobalVariablesRepository();
            repo.Name    = RepoName;
            repo.Package = Package;

            repo.GlobalVariables = new List <GlobalVariable>
            {
                new GlobalVariable
                {
                    Name  = "propertyName1",
                    Type  = GlobalVariableType.String,
                    Value = "my test value"
                },
                new GlobalVariable
                {
                    Name  = "propertyName2",
                    Type  = GlobalVariableType.Integer,
                    Value = "12"
                }
            };
            resultNamspace = builder.Build(repo);
        }
        public void Should_convert_stringValue_To_Int_When_Property_is_Integer()
        {
            var result = GlobalVariableBuilder.ConvertToPrimitiveType("System.Int32", "12");

            Assert.AreEqual(12, result);
        }