public NewContactScenario()
 {
     _sut = new GoogleContactProfileTranslator();
 }
        public void Create_Json_from_GoogleResponse()
        {
            var account = Substitute.For<IAccount>();
            account.AccountId.Returns("MyAccountId");
            var httpReponse = File.ReadAllText(@"SampleContactRequest_response_large.xml");
            var groupsHttpReponse = File.ReadAllText(@"ContactGroups_response.xml");

            var translator = new GoogleContactProfileTranslator();
            var groups = translator.ToGroupDictionary(groupsHttpReponse);
            var results = translator.Translate(httpReponse, "junkAccessToken", account, groups);

            var titles = results.Items
                .Where(summary => !summary.IsDeleted
                    && !string.IsNullOrWhiteSpace(summary.Title)
                    && summary.Title.ToLowerInvariant().Contains("erynne"))
                .Select(summary => summary.Title);
            foreach (var title in titles)
            {
                Console.WriteLine(title);
            }


            var count = results.Items.Count(
                summary =>
                    !summary.IsDeleted
                    && !string.IsNullOrWhiteSpace(summary.Title)
                    && summary.Title.ToLowerInvariant().Contains("erynne"));

            Assert.AreEqual(3, count);
        }