Exemple #1
0
        static Program()
        {
            var configuration = ProgramUtility.LoadConfiguration(Directory.GetCurrentDirectory());

            TraceSources.ConfiguredTraceSourceName = configuration[DeploymentEnvironment.DefaultTraceSourceNameConfigurationKey];

            traceSource = TraceSources
                          .Instance
                          .GetTraceSourceFromConfiguredName()
                          .WithSourceLevels();
        }
Exemple #2
0
        public IssueManagerRepositoryTest(ITestOutputHelper helper)
        {
            this._testOutputHelper = helper;

            var projectRoot = FrameworkAssemblyUtility
                              .GetPathFromAssembly(this.GetType().Assembly, "../../../");
            var projectInfo = new DirectoryInfo(projectRoot);

            var basePath = projectInfo.Parent.FindDirectory("Edu.Ucsb.IssueManager.Web").FullName;

            this._configuration = ProgramUtility.LoadConfiguration(basePath);
        }
Exemple #3
0
        internal static string Run(string[] args)
        {
            var configuration = ProgramUtility.LoadConfiguration(Directory.GetCurrentDirectory());

            TraceSources.ConfiguredTraceSourceName = configuration[DeploymentEnvironment.DefaultTraceSourceNameConfigurationKey];

            var traceSource = TraceSources
                              .Instance
                              .GetTraceSourceFromConfiguredName()
                              .WithSourceLevels();

            var getter   = new PublicationsActivitiesGetter(args);
            var activity = getter.GetActivity().WithConfiguration(configuration);

            return(getter.Args.IsHelpRequest() ?
                   activity.DisplayHelp(getter.Args)
                :
                   activity.StartActivity(getter.Args, traceSource));
        }