Exemplo n.º 1
0
        /// <summary>
        /// Creates the result.
        /// </summary>
        /// <param name="passed">if set to <c>true</c> then the check passed.</param>
        /// <param name="check">The check.</param>
        /// <param name="url">The URL.</param>
        /// <param name="message">The message.</param>
        /// <returns>
        /// The result
        /// </returns>
        private static PassiveCheckResult CreateResult(bool passed, IPassiveCheck check, string url, string message)
        {
            PassiveCheckResult result = new PassiveCheckResult();

            result.Passed  = passed;
            result.Url     = url;
            result.Message = message;

            return(result);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Creates the result.
 /// </summary>
 /// <param name="passed">if set to <c>true</c> [passed].</param>
 /// <param name="check">The check.</param>
 /// <param name="url">The URL.</param>
 /// <returns>
 /// The result
 /// </returns>
 private static PassiveCheckResult CreateResult(bool passed, IPassiveCheck check, string url)
 {
     return CreateResult(passed, check, url, null);
 }
Exemplo n.º 3
0
        public static PassiveCheckResult CreatePass(IPassiveCheck check, string url)
        {
            PassiveCheckResult result = CreateResult(true, check, url);

            return result;
        }
Exemplo n.º 4
0
        public static PassiveCheckResult CreateFailure(IPassiveCheck check, string url, string message)
        {
            PassiveCheckResult result = CreateResult(false, check, url);

            return result;
        }
Exemplo n.º 5
0
 public static PassiveCheckResult CreateFailure(IPassiveCheck check, string url)
 {
     return CreateFailure(check, url, null);
 }
Exemplo n.º 6
0
        /// <summary>
        /// Creates the result.
        /// </summary>
        /// <param name="passed">if set to <c>true</c> then the check passed.</param>
        /// <param name="check">The check.</param>
        /// <param name="url">The URL.</param>
        /// <param name="message">The message.</param>
        /// <returns>
        /// The result
        /// </returns>
        private static PassiveCheckResult CreateResult(bool passed, IPassiveCheck check, string url, string message)
        {
            PassiveCheckResult result = new PassiveCheckResult();
            result.Passed = passed;
            result.Url = url;
            result.Message = message;

            return result;
        }
Exemplo n.º 7
0
        public static PassiveCheckResult CreatePass(IPassiveCheck check, string url)
        {
            PassiveCheckResult result = CreateResult(true, check, url);

            return(result);
        }
Exemplo n.º 8
0
        public static PassiveCheckResult CreateFailure(IPassiveCheck check, string url, string message)
        {
            PassiveCheckResult result = CreateResult(false, check, url);

            return(result);
        }
Exemplo n.º 9
0
 public static PassiveCheckResult CreateFailure(IPassiveCheck check, string url)
 {
     return(CreateFailure(check, url, null));
 }
Exemplo n.º 10
0
 /// <summary>
 /// Creates the result.
 /// </summary>
 /// <param name="passed">if set to <c>true</c> [passed].</param>
 /// <param name="check">The check.</param>
 /// <param name="url">The URL.</param>
 /// <returns>
 /// The result
 /// </returns>
 private static PassiveCheckResult CreateResult(bool passed, IPassiveCheck check, string url)
 {
     return(CreateResult(passed, check, url, null));
 }