ToHost() public method

public ToHost ( string teamCityHost ) : TeamCityConfigurationBuilder
teamCityHost string
return TeamCityConfigurationBuilder
        public void GetTeamCityConnectionDetails_Guest_ActAsGuestTrue()
        {
            // Arrange
            var teamCityConfigurationBuilder = new TeamCityConfigurationBuilder();
            // Act
            var teamCityConnectionDetails =
                teamCityConfigurationBuilder.ToHost("teamcity").AsGuest().GetTeamCityConnectionDetails();

            // Assert
            teamCityConnectionDetails.ActAsGuest.Should().BeTrue();
            teamCityConnectionDetails.TeamCityHost.Should().Be("teamcity");
        }
        public void GetTeamCityConnectionDetails_AsUser_ActAsGuestFalse()
        {
            // Arrange
            var teamCityConfigurationBuilder = new TeamCityConfigurationBuilder();
            // Act
            var teamCityConnectionDetails =
                teamCityConfigurationBuilder.ToHost("teamcity").AsUser("user", "pwd").GetTeamCityConnectionDetails();

            // Assert
            teamCityConnectionDetails.TeamCityHost.Should().Be("teamcity");
            teamCityConnectionDetails.ActAsGuest.Should().BeFalse();
            teamCityConnectionDetails.Username.Should().Be("user");
            teamCityConnectionDetails.Password.Should().Be("pwd");
        }