public void StrategyFailsForNonMatchingEmailAddress()
        {
            var userEmailAddress = "*****@*****.**";

            var strategyUnderTest = new EmailAddressAccessStrategy(testGmailPattern);

            Assert.False(strategyUnderTest.UserCanAccessHub(userEmailAddress).Result);
        }
        public void StrategyPassesForMatchingEmailAddress()
        {
            var userEmailAddress = "*****@*****.**";

            var strategyUnderTest = new EmailAddressAccessStrategy(testGmailPattern);

            Assert.True(strategyUnderTest.UserCanAccessHub(userEmailAddress).Result);
        }
        public async Task ThrowsExceptionWithNullInput()
        {
            var strategyUnderTest = new EmailAddressAccessStrategy(testGmailPattern);

            await Assert.ThrowsAsync<ArgumentNullException>(() => strategyUnderTest.UserCanAccessHub(null));
        }
 public void ReturnsFalseWithEmptyString()
 {
     var strategyUnderTest = new EmailAddressAccessStrategy(testGmailPattern);
     
     Assert.False(strategyUnderTest.UserCanAccessHub("").Result);
 }