public void SetUp() { _mockActivityResponse = new GooglePlus.ActivityResponse { Items = new List <GooglePlus.Activity> { new GooglePlus.Activity { Id = "1", Object = new GooglePlus.ActivityObject { Attachments = new List <GooglePlus.Attachment> { new GooglePlus.Attachment { ObjectType = "photo", Url = "Photo1" } } } }, new GooglePlus.Activity { Id = "2", Object = new GooglePlus.ActivityObject { Attachments = new List <GooglePlus.Attachment> { new GooglePlus.Attachment { ObjectType = "video", Url = "Video1" } } } } } }; _mockPeopleResponse = new GooglePlus.PeopleResponse { Items = new List <GooglePlus.Person> { new GooglePlus.Person { Id = "1", DisplayName = "PersonName1" }, new GooglePlus.Person { Id = "2", DisplayName = "PersonName2" }, new GooglePlus.Person { Id = "3", DisplayName = "PersonName3" } } }; _mockPeopleResponseSecondPage = new GooglePlus.PeopleResponse { Items = new List <GooglePlus.Person> { new GooglePlus.Person { Id = "4", DisplayName = "PersonName4" } } }; _mockCommentsResponse = new GooglePlus.CommentsResponse { Items = new List <GooglePlus.Comment> { new GooglePlus.Comment { Id = "1", Object = new GooglePlus.CommentObject { Content = "Comment1" } }, new GooglePlus.Comment { Id = "2", Object = new GooglePlus.CommentObject { Content = "Comment2" } }, new GooglePlus.Comment { Id = "3", Object = new GooglePlus.CommentObject { Content = "Comment3" } } } }; _mockCommentsResponseSecondPage = new GooglePlus.CommentsResponse { Items = new List <GooglePlus.Comment> { new GooglePlus.Comment { Id = "4", Object = new GooglePlus.CommentObject { Content = "Comment4" } } } }; config = new GooglePlusConfiguration { ApiKey = _apiKey }; }
/// <summary> /// Instantiates a new instance of the <see cref="GooglePlusService"/> class. /// </summary> /// <param name="client">Http Client</param> /// <param name="config">Configuration</param> public GooglePlusService(ISafeHttpClient client, GooglePlusConfiguration config) { _client = client; _apiKey = config.ApiKey; }