public async Task KillmailAsync_successfully_returns_a_V1KillmailKillmail()
        {
            Mock <IWebClient> mockedWebClient = new Mock <IWebClient>();

            int    killmailId   = 7777;
            string killmailHash = "ssssss";
            string json         = "{\r\n  \"attackers\": [\r\n    {\r\n      \"character_id\": 95810944,\r\n      \"corporation_id\": 1000179,\r\n      \"damage_done\": 5745,\r\n      \"faction_id\": 500003,\r\n      \"final_blow\": true,\r\n      \"security_status\": -0.3,\r\n      \"ship_type_id\": 17841,\r\n      \"weapon_type_id\": 3074\r\n    }\r\n  ],\r\n  \"killmail_id\": 56733821,\r\n  \"killmail_time\": \"2016-10-22T17:13:36Z\",\r\n  \"solar_system_id\": 30002976,\r\n  \"victim\": {\r\n    \"alliance_id\": 621338554,\r\n    \"character_id\": 92796241,\r\n    \"corporation_id\": 841363671,\r\n    \"damage_taken\": 5745,\r\n    \"items\": [\r\n      {\r\n        \"flag\": 20,\r\n        \"item_type_id\": 5973,\r\n        \"quantity_dropped\": 1,\r\n        \"singleton\": 0\r\n      }\r\n    ],\r\n    \"position\": {\r\n      \"x\": 452186600569.4748,\r\n      \"y\": 146704961490.90222,\r\n      \"z\": 109514596532.54477\r\n    },\r\n    \"ship_type_id\": 17812\r\n  }\r\n}";

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

            InternalLatestKillmails internalLatestKillmails = new InternalLatestKillmails(mockedWebClient.Object, string.Empty);

            V1KillmailKillmail returnModel = await internalLatestKillmails.KillmailAsync(killmailId, killmailHash);

            Assert.Single(returnModel.Attackers);

            Assert.Equal(95810944, returnModel.Attackers[0].CharacterId);
            Assert.Equal(1000179, returnModel.Attackers[0].CorporationId);
            Assert.Equal(5745, returnModel.Attackers[0].DamageDone);
            Assert.Equal(500003, returnModel.Attackers[0].FactionId);
            Assert.True(returnModel.Attackers[0].FinalBlow);
            Assert.Equal(-0.3f, returnModel.Attackers[0].SecurityStatus);
            Assert.Equal(17841, returnModel.Attackers[0].ShipTypeId);
            Assert.Equal(3074, returnModel.Attackers[0].WeaponTypeId);

            Assert.Equal(56733821, returnModel.KillmailId);
            Assert.Equal(new DateTime(2016, 10, 22, 17, 13, 36), returnModel.KillmailTime);
            Assert.Equal(30002976, returnModel.SolarSystemId);

            Assert.Equal(621338554, returnModel.Victim.AllianceId);
            Assert.Equal(92796241, returnModel.Victim.CharacterId);
            Assert.Equal(841363671, returnModel.Victim.CorporationId);
            Assert.Equal(5745, returnModel.Victim.DamageTaken);

            Assert.Single(returnModel.Victim.Items);

            Assert.Equal(20, returnModel.Victim.Items[0].Flag);
            Assert.Equal(5973, returnModel.Victim.Items[0].ItemTypeId);
            Assert.Equal(1, returnModel.Victim.Items[0].QuantityDropped);
            Assert.Equal(0, returnModel.Victim.Items[0].Singleton);

            Assert.Equal(452186600569.4748f, returnModel.Victim.Position.X);
            Assert.Equal(146704961490.90222f, returnModel.Victim.Position.Y);
            Assert.Equal(109514596532.54477f, returnModel.Victim.Position.Z);

            Assert.Equal(17812, returnModel.Victim.ShipTypeId);
        }
        public async Task KillmailAsync_successfully_returns_a_V1KillmailKillmail()
        {
            int    killmailId   = 7777;
            string killmailHash = "ssssss";

            LatestKillmailsEndpoints internalLatestKillmails = new LatestKillmailsEndpoints(string.Empty, true);

            V1KillmailKillmail returnModel = await internalLatestKillmails.KillmailAsync(killmailId, killmailHash);

            Assert.Single(returnModel.Attackers);

            Assert.Equal(95810944, returnModel.Attackers[0].CharacterId);
            Assert.Equal(1000179, returnModel.Attackers[0].CorporationId);
            Assert.Equal(5745, returnModel.Attackers[0].DamageDone);
            Assert.Equal(500003, returnModel.Attackers[0].FactionId);
            Assert.True(returnModel.Attackers[0].FinalBlow);
            Assert.Equal(-0.3f, returnModel.Attackers[0].SecurityStatus);
            Assert.Equal(17841, returnModel.Attackers[0].ShipTypeId);
            Assert.Equal(3074, returnModel.Attackers[0].WeaponTypeId);

            Assert.Equal(56733821, returnModel.KillmailId);
            Assert.Equal(new DateTime(2016, 10, 22, 17, 13, 36), returnModel.KillmailTime);
            Assert.Equal(30002976, returnModel.SolarSystemId);

            Assert.Equal(621338554, returnModel.Victim.AllianceId);
            Assert.Equal(92796241, returnModel.Victim.CharacterId);
            Assert.Equal(841363671, returnModel.Victim.CorporationId);
            Assert.Equal(5745, returnModel.Victim.DamageTaken);

            Assert.Single(returnModel.Victim.Items);

            Assert.Equal(20, returnModel.Victim.Items[0].Flag);
            Assert.Equal(5973, returnModel.Victim.Items[0].ItemTypeId);
            Assert.Equal(1, returnModel.Victim.Items[0].QuantityDropped);
            Assert.Equal(0, returnModel.Victim.Items[0].Singleton);

            Assert.Equal(452186600569.4748f, returnModel.Victim.Position.X);
            Assert.Equal(146704961490.90222f, returnModel.Victim.Position.Y);
            Assert.Equal(109514596532.54477f, returnModel.Victim.Position.Z);

            Assert.Equal(17812, returnModel.Victim.ShipTypeId);
        }