public async Task ContactNotificationsAsync_successfully_returns_a_list_of_V1CharactersNotificationsContacts() { Mock <IWebClient> mockedWebClient = new Mock <IWebClient>(); int characterId = 88823; CharacterScopes scopes = CharacterScopes.esi_characters_read_notifications_v1; SsoToken inputToken = new SsoToken { AccessToken = "This is a old access token", RefreshToken = "This is a old refresh token", CharacterId = characterId, CharacterScopesFlags = scopes }; string json = "[{\"notification_id\": 1,\"sender_character_id\": 95465499,\"send_date\": \"2017-08-16T10:08:00Z\",\"standing_level\": 1.5,\"message\": \"hello friend :3\"}]"; mockedWebClient.Setup(x => x.GetAsync(It.IsAny <WebHeaderCollection>(), It.IsAny <string>(), It.IsAny <int>())).ReturnsAsync(new EsiModel { Model = json }); InternalLatestCharacter internalLatestCharacter = new InternalLatestCharacter(mockedWebClient.Object, string.Empty); IList <V1CharactersNotificationsContacts> getCharactersNotificationsContacts = await internalLatestCharacter.ContactNotificationsAsync(inputToken); Assert.Equal(1, getCharactersNotificationsContacts.Count); Assert.Equal(1, getCharactersNotificationsContacts.First().NotificationId); Assert.Equal(95465499, getCharactersNotificationsContacts.First().SenderCharacterId); Assert.Equal(new DateTime(2017, 08, 16, 10, 08, 00), getCharactersNotificationsContacts.First().SendDate); Assert.Equal(1.5, getCharactersNotificationsContacts.First().StandingLevel); }