Exemplo n.º 1
0
        public void GetUriTest()
        {
            var request = new LanguagesRequest
            {
                Key    = "abc",
                Target = Language.Afrikaans
            };

            var uri = request.GetUri();

            Assert.IsNotNull(uri);
            Assert.AreEqual($"/language/translate/v2/languages?key={request.Key}&target={request.Target.GetValueOrDefault().ToCode()}&model={request.Model.ToString().ToLower()}", uri.PathAndQuery);
        }