public void CorporationOrders_successfully_returns_a_PagedModelV3MarketCorporationOrders() { int characterId = 98772; MarketScopes scopes = MarketScopes.esi_markets_read_corporation_orders_v1; SsoToken inputToken = new SsoToken { AccessToken = "This is a old access token", RefreshToken = "This is a old refresh token", CharacterId = characterId, MarketScopesFlags = scopes }; LatestMarketEndpoints internalLatestMarket = new LatestMarketEndpoints(string.Empty, true); PagedModel <V3MarketCorporationOrders> result = internalLatestMarket.CorporationOrders(inputToken, 1, 1); Assert.Equal(1, result.Model.Count); Assert.Equal(30, result.Model[0].Duration); Assert.Equal(45.6, result.Model[0].Escrow); Assert.True(result.Model[0].IsBuyOrder); Assert.Equal(new DateTime(2016, 09, 03, 05, 12, 25), result.Model[0].Issued); Assert.Equal(2112625428, result.Model[0].IssuedBy); Assert.Equal(456, result.Model[0].LocationId); Assert.Equal(1, result.Model[0].MinVolume); Assert.Equal(123, result.Model[0].OrderId); Assert.Equal(33.3, result.Model[0].Price); Assert.Equal(MarketRange.Station, result.Model[0].Range); Assert.Equal(123, result.Model[0].RegionId); Assert.Equal(456, result.Model[0].TypeId); Assert.Equal(4422, result.Model[0].VolumeRemain); Assert.Equal(123456, result.Model[0].VolumeTotal); Assert.Equal(1, result.Model[0].WalletDivision); }