Beispiel #1
0
        public void EmailSourcesTestWithInValidArgsExpectedInvalidValidationResult()
        {
            var handler = new EmailSources();
            var result  = handler.Test("root:'hello'", Guid.Empty, Guid.Empty);

            Assert.IsFalse(result.IsValid);
        }
Beispiel #2
0
        public void EmailSourcesTest_LOCAL()
        {
            var source = CreateLocalSource().ToString();

            var handler = new EmailSources();
            var result  = handler.Test(source, Guid.Empty, Guid.Empty);

            Assert.IsTrue(result.IsValid, result.ErrorMessage);
        }
Beispiel #3
0
        public void EmailSourcesTest_HOTMAIL_SSL()
        {
            var source = CreateWindowsLiveSource().ToString();

            var handler = new EmailSources();
            var result  = handler.Test(source, Guid.Empty, Guid.Empty);

            Assert.IsTrue(result.IsValid, result.ErrorMessage);
        }
Beispiel #4
0
        public void EmailSourcesTestWithInvalidHostExpectedInvalidValidationResult()
        {
            var source = new EmailSource {
                Host = "smtp.foobar.com", Port = 25
            }.ToString();

            var handler = new EmailSources();
            var result  = handler.Test(source, Guid.Empty, Guid.Empty);

            Assert.IsFalse(result.IsValid, result.ErrorMessage);
        }