コード例 #1
0
        public void Single_NoCredentials()
        {
            var source = new NuGetSource
            {
                Source = "http://foo"
            };
            var p = new TeamCitySingleCredentialProvider(source);

            AssertAuth(p);
        }
コード例 #2
0
        public void Single_Credentials()
        {
            var source = new NuGetSource
            {
                Source   = "http://foo",
                Username = "******",
                Password = "******"
            };
            var p = new TeamCitySingleCredentialProvider(source);

            AssertAuth(p, username: "******", password: "******");
        }