public void AttemptValidateTargetDomainIsGoogleAppDomainWithInvalidDomain()
 {
     string domain = "buildmotion2.com";
     this.providerMock.Setup(d => d.GoogleAppDomain).Returns("buildmotion.com");
     UserDomainIsValidAction action = new UserDomainIsValidAction(domain, this.providerMock.Object);
     action.Execute();
     Assert.IsFalse(action.DomainIsValid);
 }
 public void CanValidateTargetDomainIsGoogleAppDomain()
 {
     string domain = "buildmotion.com";
     this.providerMock.Setup(d => d.GoogleAppDomain).Returns("buildmotion.com");
     UserDomainIsValidAction action = new UserDomainIsValidAction(domain, this.providerMock.Object);
     action.Execute();
     Assert.AreEqual(domain, this.providerMock.Object.GoogleAppDomain);
     Assert.IsTrue(action.DomainIsValid);
 }
 /// <summary>
 ///     Users the domain is valid.
 /// </summary>
 /// <param name="domain">The domain.</param>
 /// <returns></returns>
 public override bool UserDomainIsValid(string domain)
 {
     bool isValid = false;
     UserDomainIsValidAction action = new UserDomainIsValidAction(domain, this);
     action.Execute();
     if (action.Result == ActionResult.Success)
     {
         isValid = action.DomainIsValid;
     }
     return isValid;
 }