Exemplo n.º 1
0
        /// <summary>
        /// Writes the content of the report settings to the specified preference set.
        /// </summary>
        /// <param name="preferenceSet">The preference set to write data in.</param>
        public void WriteTo(IPreferenceSet preferenceSet)
        {
            if (preferenceSet == null)
            {
                throw new ArgumentNullException("preferenceSet");
            }

            preferenceSet.Write(writer => writer.SetSetting(new Key <string>("ReportSettingsReportType"), reportType));
            preferenceSet.Write(writer => writer.SetSetting(new Key <int>("ReportSettingsAutoCondenseThreadhold"), autoCondenseThreshold));
        }
Exemplo n.º 2
0
        /// <summary>
        /// Writes the contents of the settings to the specified preference set.
        /// </summary>
        /// <param name="preferenceSet">The preference set to write data in.</param>
        public void WriteTo(IPreferenceSet preferenceSet)
        {
            if (preferenceSet == null)
            {
                throw new ArgumentNullException("preferenceSet");
            }

            preferenceSet.Write(writer => writer.SetSetting(new Key <bool>("HtmlReportSplitEnabled"), Enabled));
            preferenceSet.Write(writer => writer.SetSetting(new Key <int>("HtmlReportSplitPageSize"), pageSize));
        }
        /// <summary>
        /// Writes the contents of the settings to the specified preference set.
        /// </summary>
        /// <param name="preferenceSet">The preference set to write data in.</param>
        public void WriteTo(IPreferenceSet preferenceSet)
        {
            if (preferenceSet == null)
                throw new ArgumentNullException("preferenceSet");

            preferenceSet.Write(writer => writer.SetSetting(new Key<bool>("HtmlReportSplitEnabled"), Enabled));
            preferenceSet.Write(writer => writer.SetSetting(new Key<int>("HtmlReportSplitPageSize"), pageSize));
        }
Exemplo n.º 4
0
 public void SetInstallationModeForFramework(string frameworkId, TDNetRunnerInstallationMode mode)
 {
     PreferenceSet.Write(writer => writer.SetSetting(
                             FrameworkInstallationModeKey(frameworkId), mode));
 }