public void CorporationStats_successfully_returns_a_V1FwCorporationStats()
        {
            Mock <IWebClient> mockedWebClient = new Mock <IWebClient>();

            int               characterId   = 828658;
            string            characterName = "ThisIsACharacter";
            CorporationScopes scopes        = CorporationScopes.esi_corporations_read_fw_stats_v1;

            SsoToken inputToken = new SsoToken {
                AccessToken = "This is a old access token", RefreshToken = "This is a old refresh token", CharacterId = characterId, CharacterName = characterName, CorporationScopesFlags = scopes
            };
            string json = "{\r\n  \"enlisted_on\": \"2017-10-17T00:00:00Z\",\r\n  \"faction_id\": 500001,\r\n  \"kills\": {\r\n    \"last_week\": 893,\r\n    \"total\": 684350,\r\n    \"yesterday\": 136\r\n  },\r\n  \"pilots\": 28863,\r\n  \"victory_points\": {\r\n    \"last_week\": 102640,\r\n    \"total\": 52658260,\r\n    \"yesterday\": 15980\r\n  }\r\n}";

            mockedWebClient.Setup(x => x.Get(It.IsAny <WebHeaderCollection>(), It.IsAny <string>(), It.IsAny <int>())).Returns(new EsiModel {
                Model = json
            });

            InternalLatestFactionWarfare internalLatestFactionWarfare = new InternalLatestFactionWarfare(mockedWebClient.Object, string.Empty);

            V1FwCorporationStats result = internalLatestFactionWarfare.CorporationStats(inputToken, 33);

            Assert.Equal(new DateTime(2017, 10, 17, 00, 00, 00), result.EnlistedOn);
            Assert.Equal(500001, result.FactionId);
            Assert.Equal(893, result.Kills.LastWeek);
            Assert.Equal(684350, result.Kills.Total);
            Assert.Equal(136, result.Kills.Yesterday);
            Assert.Equal(28863, result.Pilots);
            Assert.Equal(102640, result.VictoryPoints.LastWeek);
            Assert.Equal(52658260, result.VictoryPoints.Total);
            Assert.Equal(15980, result.VictoryPoints.Yesterday);
        }
        public async Task CorporationStatsAsync_successfully_returns_a_V1FwCorporationStats()
        {
            int               characterId   = 828658;
            string            characterName = "ThisIsACharacter";
            CorporationScopes scopes        = CorporationScopes.esi_corporations_read_fw_stats_v1;

            SsoToken inputToken = new SsoToken {
                AccessToken = "This is a old access token", RefreshToken = "This is a old refresh token", CharacterId = characterId, CharacterName = characterName, CorporationScopesFlags = scopes
            };

            LatestFactionWarfareEndpoints internalLatestFactionWarfare = new LatestFactionWarfareEndpoints(string.Empty, true);

            V1FwCorporationStats result = await internalLatestFactionWarfare.CorporationStatsAsync(inputToken, 33);

            Assert.Equal(new DateTime(2017, 10, 17, 00, 00, 00), result.EnlistedOn);
            Assert.Equal(500001, result.FactionId);
            Assert.Equal(893, result.Kills.LastWeek);
            Assert.Equal(684350, result.Kills.Total);
            Assert.Equal(136, result.Kills.Yesterday);
            Assert.Equal(28863, result.Pilots);
            Assert.Equal(102640, result.VictoryPoints.LastWeek);
            Assert.Equal(52658260, result.VictoryPoints.Total);
            Assert.Equal(15980, result.VictoryPoints.Yesterday);
        }