public void DisallowedSimpleTest() { var communication = new Communication { To = new EmailUser("*****@*****.**") }; EmailDomainChecker.Check(communication, AllowedTestDomains); }
public void DisallowedExtraCharsTest() { var communication = new Communication { To = new EmailUser("<*****@*****.**>") }; EmailDomainChecker.Check(communication, AllowedTestDomains); }
public void AllowedDomainsTest() { // The only allowed emails are now @test.linkme.net.au var communication = new Communication { To = new EmailUser("[email protected], <*****@*****.**>") }; EmailDomainChecker.Check(communication, AllowedTestDomains); communication = new Communication { To = new EmailUser("Allowed Domain <*****@*****.**> ") }; EmailDomainChecker.Check(communication, AllowedTestDomains); }