Exemple #1
0
        public void Execute()
        {
            // act
            var response = new WorldNamesRequest().Execute();

            // assert
            var world = response.Where(w => w.Id == GateOfMadnessWorldId).First();

            Assert.AreEqual("Gate of Madness", world.Name);
        }
Exemple #2
0
        public void ExecuteTranslated()
        {
            // arrange
            var translatedNames = new Dictionary <LanguageCode, string>()
            {
                { LanguageCode.DE, "Tor des Irrsinns" },
                { LanguageCode.EN, "Gate of Madness" },
                { LanguageCode.ES, "Puerta de la Locura" },
                { LanguageCode.FR, "Porte de la folie" },
            };

            foreach (var pair in translatedNames)
            {
                // act
                var response = new WorldNamesRequest(pair.Key).Execute();

                // assert
                var world = response.Where(w => w.Id == GateOfMadnessWorldId).First();
                Assert.AreEqual(pair.Value, world.Name);
            }
        }