Exemple #1
0
        public void WhenAcceptLanguageIsCalledThenRequestAcceptLanguageIsSet()
        {
            var language = new StringWithQualityHeaderValue("en");

            _builder.AcceptLanguage(language);
            Assert.AreEqual(language, _request.Headers.AcceptLanguage.First());
        }