Esempio n. 1
0
        public async Task SchematicAsync_successfully_returns_a_V1PlanetaryInteractionSchematic()
        {
            LatestPlanetaryInteractionEndpoints internalLatestPlanetaryInteraction = new LatestPlanetaryInteractionEndpoints(string.Empty, true);

            V1PlanetaryInteractionSchematic returnModel = await internalLatestPlanetaryInteraction.SchematicAsync(3333);

            Assert.Equal(1800, returnModel.CycleTime);
            Assert.Equal("Bacteria", returnModel.SchematicName);
        }
Esempio n. 2
0
        public async Task SchematicAsync_successfully_returns_a_V1PlanetaryInteractionSchematic()
        {
            Mock <IWebClient> mockedWebClient = new Mock <IWebClient>();

            string json = "{\r\n  \"cycle_time\": 1800,\r\n  \"schematic_name\": \"Bacteria\"\r\n}";

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

            InternalLatestPlanetaryInteraction internalLatestPlanetaryInteraction = new InternalLatestPlanetaryInteraction(mockedWebClient.Object, string.Empty);

            V1PlanetaryInteractionSchematic returnModel = await internalLatestPlanetaryInteraction.SchematicAsync(3333);

            Assert.Equal(1800, returnModel.CycleTime);
            Assert.Equal("Bacteria", returnModel.SchematicName);
        }