ITesteableErrorDialog ITesteableApplicationWindow.GetErrorDialog()
        {
            if (WindowHandler.GetActiveDialog() == null)
            {
                return(null);
            }

            ErrorDialog errorDialog = WindowHandler.GetActiveDialog() as ErrorDialog;

            if (errorDialog == null)
            {
                return(null);
            }

            return(new TesteableErrorDialog(errorDialog));
        }