ReviewNotifier.ReviewNotifierConfiguration.VerifyWhole C# (CSharp) Method

VerifyWhole() private method

Verifies that the configuration is in a ready to run state.
private VerifyWhole ( ) : bool
return bool
        internal bool VerifyWhole()
        {
            if (!VerifyParts())
                return false;

            bool result = true;
            if (SmtpServer != null && EmailService != null)
            {
                Console.Error.WriteLine("Can only have either SMTP or Exchange configured.");
                Console.Error.WriteLine("Please reset the configuration and try again.");
                result = false;
            }

            if ((SmtpServer == null && EmailService == null) || User == null || Database == null ||
                WebServer == null || EmailDomain == null)
            {
                Console.Error.WriteLine("You need to configure user credentials, mail server, web server, " +
                    "and database connection string first.");
                result = false;
            }

            return result;
        }