Example #1
0
        public void CheckWatermarkStatus()
        {
            //Value defined, nothing to do
            if (_applicationSettings.UseWatermark.HasValue)
            {
                return;
            }

            var useWatermark = _dialogCreator.MessageBoxYesNo(
                Captions.ShouldWatermarkBeUsedForChartExportToClipboard(_applicationConfiguration.ProductName, _applicationConfiguration.WatermarkOptionLocation),
                defaultButton: ViewResult.No);

            _applicationSettings.UseWatermark = (useWatermark == ViewResult.Yes);
        }
 protected override void Context()
 {
     base.Context();
     _applicationSettings.UseWatermark = null;
     A.CallTo(() => _dialogCreator.MessageBoxYesNo(Captions.ShouldWatermarkBeUsedForChartExportToClipboard(_productName, _location), ViewResult.No)).Returns(ViewResult.Yes);
 }