Exemple #1
0
        new public void Init()
        {
            base.Init();

            FieldNotInitializedException.ThrowIfNull(this, ref _flowDao);
            FieldNotInitializedException.ThrowIfNull(this, ref _messageBodyFilePaths);
            FieldNotInitializedException.ThrowIfNull(this, ref _fromEmailAddress);
            FieldNotInitializedException.ThrowIfNull(this, ref _notificationDao);

            FieldNotInitializedException.ThrowIfEmptyString(this, ref _smtpHost);
            FieldNotInitializedException.ThrowIfZero(this, ref _smtpPort);
            FieldNotInitializedException.ThrowIfEmptyString(this, ref _adminInterfaceUrl);

            // Make sure all of the files are present
            foreach (KeyValuePair <string, string> pair in MessageBodyFilePaths)
            {
                FieldNotInitializedException.ThrowIfRelativeFileMissing(pair.Value);
            }
        }