public void SwaggerNTLMAuthWithDefaultUserTest_Successful()
        {
            var options = new SwaggerOptions();

            options.AddNTLMAuthentication();

            Assert.Null(options.UserName);
            Assert.Null(options.Password);
            Assert.False(options.UseBasicAuth);
            Assert.True(options.UseNTLMAuth);
        }
        public void SwaggerNTLMAuthTest_Successful()
        {
            var options = new SwaggerOptions();

            options.AddNTLMAuthentication("user", "password");

            Assert.Equal("user", options.UserName);
            Assert.Equal("password", options.Password);
            Assert.False(options.UseBasicAuth);
            Assert.True(options.UseNTLMAuth);
        }
        public void SwaggerNTLMAuthTest_Fails(string userName, string password)
        {
            var options = new SwaggerOptions();

            Assert.Throws <ArgumentNullException>(() => options.AddNTLMAuthentication(userName, password));
        }