public void FileTypes()
        {
            //setup
            IUniversalRoutingEntity destination = GetUniversalEntity("Destination", "*****@*****.**", "james", "Cc");
            IUniversalRoutingEntity source = GetUniversalEntity("Source", "me@workshare", "me", "From");

            destination.Items.Add(GetRoutingItem("*****@*****.**", "Hello", "To"));
            destination.Items.Add(GetRoutingItem("*****@*****.**", "Hi", "Bcc"));

            string[] content = new string[] { "bond.cz" };
            string[] fields = new string[] { "cc", "bcc", "to" };

            EmailAnalyzer ea = new EmailAnalyzer();

            Assert.IsTrue(ea.AddressMatch(testFileNonEmail, destination, source, fields, content), "Expecting a match on {0}", content[0]);
        }
        public void NullMatchIsFalse()
        {
            EmailAnalyzer ea = new EmailAnalyzer();

            Assert.IsFalse(ea.AddressMatch(null, null, null, null, null), "Null params should not match");
                        
        }
        public void CCDomainMatch()
        {
            //setup
            IUniversalRoutingEntity destination = GetUniversalEntity("Destination", "*****@*****.**", "james", "Cc");
            IUniversalRoutingEntity source = GetUniversalEntity("Source", "me@workshare", "me", "From");
            string[] content = new string[] { "wsdev.net" };
            string[] fields = new string[] { "cc" };

            EmailAnalyzer ea = new EmailAnalyzer();

            //execute
            Assert.IsTrue(ea.AddressMatch(testFileEmail, destination, source, fields, content), "Expecting a match on {0}", content[0]);
        }