Exemplo n.º 1
0
        public override void GlobalContext()
        {
            base.GlobalContext();
            LoadProject(_projectName);
            _reportsDir = new DirectoryInfo(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Reports", _projectName));
            if (!_reportsDir.Exists)
            {
                _reportsDir.Create();
            }

            _reportingTask       = IoC.Resolve <IReportingTask>();
            _reportConfiguration = new ReportConfiguration
            {
                Title            = "Testing Reports",
                Author           = "Unit Tests Engine",
                Keywords         = new[] { "Tests", "PKReporting", "SBSuite" },
                Software         = "SBSuite",
                SubTitle         = "SubTitle",
                SoftwareVersion  = "5.2",
                ContentFileName  = "Content",
                DeleteWorkingDir = true,
                ColorStyle       = ReportSettings.ReportColorStyles.Color
            };

            _reportConfiguration.Template = new ReportTemplate {
                Path = DomainHelperForSpecs.TEXTemplateFolder()
            };

            //Add all simulation to repository as they will be required when deserialzing the summary charts
            var repo = IoC.Resolve <IWithIdRepository>();

            All <Simulation>().Each(repo.Register);
        }
Exemplo n.º 2
0
        protected override void Context()
        {
            base.Context();
            _buildSettings = new OSPSuiteBuildSettings();
            _fileName      = FileHelper.GenerateTemporaryFileName() + ".pdf";
            var buildTrackerFactory = IoC.Resolve <IBuildTrackerFactory>();

            _buildTracker          = buildTrackerFactory.CreateFor <OSPSuiteTracker>(_fileName);
            _buildTracker.Settings = _buildSettings;
            _reportSettings        = new ReportSettings
            {
                Title            = "Test",
                Author           = "Unit Tests Engine",
                Keywords         = new[] { "Tests", "PKReporting", "SBSuite" },
                Software         = "SBSuite",
                SubTitle         = "SubTitle",
                SoftwareVersion  = "5.2",
                TemplateFolder   = DomainHelperForSpecs.TEXTemplateFolder(),
                ContentFileName  = "Content",
                DeleteWorkingDir = true
            };
        }