public void GetAssignedResponsibilityFromTestNameId() { ///app/rest/investigations?locator=test:(id:-1884830467297296372) // Arrange var teamCityCaller = CreateTeamCityCaller(); var connectedTc = new RemoteTc().Connect(_ => _.AsGuest(), teamCityCaller); // Act Investigation investigation = connectedTc.GetTestinvestigationByTestNameId("reallyLongNumberHere"); // Assert A.CallTo(() => teamCityCaller.Get <InvestigationWrapper>(@"/app/rest/investigations?locator=test:(id:reallyLongNumberHere)")).MustHaveHappened(); }
public void GetAssignedResponsibilityFromTestNameId() { ///app/rest/investigations?locator=test:(id:-1884830467297296372) // Arrange var teamCityCaller = CreateTeamCityCaller(); var connectedTc = new RemoteTc().Connect(_ => _.AsGuest(), teamCityCaller); // Act Investigation investigation = connectedTc.GetTestinvestigationByTestNameId("reallyLongNumberHere"); // Assert A.CallTo(() => teamCityCaller.Get<InvestigationWrapper>(@"/app/rest/investigations?locator=test:(id:reallyLongNumberHere)")).MustHaveHappened(); }