public void ShouldNotFindRegisteredDomainForInvalidEmail(string value)
        {
            var check = new RegisteredDomainCheck
            {
                Username = value
            };
            var service = new GraphAuthService(_registrationService);

            var result = Assert.Throws <HttpError>(() => service.Post(check));

            Assert.NotNull(result);
            Assert.IsAssignableFrom <HttpError>(result);
            Assert.Equal(HttpStatusCode.BadRequest, result.StatusCode);
        }
        public void ShouldNotFindUnRegisteredDomain()
        {
            var check = new RegisteredDomainCheck
            {
                Username = "******"
            };
            var service = new GraphAuthService(_registrationService);

            var result = service.Post(check);

            Assert.NotNull(result);
            Assert.IsAssignableFrom <RegisteredDomainCheckResponse>(result);
            Assert.False(((RegisteredDomainCheckResponse)result).IsRegistered);
        }