public User GetUserForUserName(string user)
        {
            var teamCityRequest = new TeamcityUserRequest();
            var request = teamCityRequest.GetRequest(user);

            return Execute(request);
        }
        public void should_create_request_for_team_city_userrequest()
        {
            // given
            var user = "******";
            var teamcityRequest = new TeamcityUserRequest();

            // when
            var result = teamcityRequest.GetRequest(user);

            // then
            Assert.That(result, Is.Not.Null);
            Assert.AreEqual(result.Resource, "/guestAuth/app/rest/users/" + user);
            Assert.AreEqual(result.Method, RestSharp.Method.GET);
            Assert.AreEqual("application/json", result.Parameters[0].Value);
        }