public void GetAllProjects() { // Arrange var teamCityCaller = CreateTeamCityCaller(); var connectedTc = new RemoteTc().Connect(_ => _.AsGuest(), teamCityCaller); // Act connectedTc.GetAllProjects(); // Assert A.CallTo(() => teamCityCaller.Get <ProjectWrapper>(@"/app/rest/projects/")).MustHaveHappened(); }
public void GetAllProjects() { // Arrange var teamCityCaller = CreateTeamCityCaller(); var connectedTc = new RemoteTc().Connect(_ => _.AsGuest(), teamCityCaller); // Act connectedTc.GetAllProjects(); // Assert A.CallTo(() => teamCityCaller.Get<ProjectWrapper>(@"/app/rest/projects/")).MustHaveHappened(); }