AspUnitRunner.Tests.Infrastructure.TestAspClient.PostRequest_with_credentials_should_set_web_client_credentials C# (CSharp) Метод

PostRequest_with_credentials_should_set_web_client_credentials() приватный Метод

private PostRequest_with_credentials_should_set_web_client_credentials ( ) : void
Результат void
        public void PostRequest_with_credentials_should_set_web_client_credentials()
        {
            var credentials = new NetworkCredential("username", "password");

            var aspClient = new AspClient(_factory, _responseDecoder);
            aspClient.Credentials = credentials;
            var response = aspClient.PostRequest("", null);

            Assert.That(_webClient.Credentials, Is.EqualTo(credentials));
        }