public void SetUp()
        {
            var auth = new StubAuthModel();
            var web = new StubWebrequestService();
            var sut = new GoogleContactQueryProvider(auth, web, new StubLoggerFactory());
            var activeProfile = new Profile(new[] { new PersonalIdentifier(null, null, "dummy") });

            web.Response = File.ReadAllText(@"ExampleFullContactQueryResponse.xml");
            _actual = sut.Search(activeProfile).First();
        }
        public void Should_return_Profile_from_request_xml()
        {
            var auth = new StubAuthModel();
            var web = new StubWebrequestService();
            var logFactory = new StubLoggerFactory();
            var sut = new GoogleIdentityProvider(auth, web, logFactory);

            web.Response =File.ReadAllText(@"ExampleFullContactQueryResponse.xml");
            var profile = sut.FindProfile(new []{""}).First();

            Assert.AreEqual(3, profile.Identifiers.Count);
            Assert.AreEqual("*****@*****.**", profile.Identifiers[0].Value);
            Assert.AreEqual("*****@*****.**", profile.Identifiers[1].Value);
            Assert.AreEqual("+33  6 4306 7658", profile.Identifiers[2].Value);
        }