示例#1
0
        public void SuccessfulZipExportNotificationHasCorrectMessage()
        {
            _mockExporter.Setup(
                e => e.Export(_testDateUtils.Now, It.IsAny <IPublisher>())).Returns(23);

            WhenExportIsExecuted(UploadWizardControl.ExportType.ZipFile);

            var actual   = _linkNotificationHelper.Context;
            var expected = new LinkNotification
            {
                Caption         = UploadWizardMessages.Title,
                Message         = Properties.UploadWizard.ExportSuccess.FormatEx(23),
                LinkDescription = Properties.UploadWizard.ExportSuccessLinkDescription,
                Link            = TestUploadUrl
            };

            Assert.AreEqual(expected, actual);
        }
示例#2
0
 protected bool Equals(LinkNotification other)
 {
     return(base.Equals(other) && string.Equals(Link, other.Link) && string.Equals(LinkDescription, other.LinkDescription));
 }