public void should_return_team_for_username()
        {
            // given
            var user = "******";
            var team = "Loki";

            var provider = new TeamcityMembershipProvider();

            // when
            var result = provider.GetTeamNameForUser(user);

            // then
            Assert.That(result, Is.Not.Null);
            Assert.AreEqual(team, result);
        }
        public void should_return_team_for_username()
        {
            // given
            var user = "******";
            var team = "Loki";

            var restclientStub = new RestClientMock {RestResponse = new RestResponse {Content = cannedJson}};

            var provider = new TeamcityMembershipProvider(restclientStub);

            // when
            var result = provider.GetTeamNameForUser(user);

            // then
            Assert.That(result, Is.Not.Null);
            Assert.AreEqual(team, result);
        }