public void TeamExists_AndATeamDoesntExist_ReturnsFalse(WireDataFormat format) { //arrange var client = TestContext.CreateClientValidCredentials(format); var teamResources = new TeamApi(client.HttpChannel); //act var result = teamResources.TeamExists(Guid.NewGuid().ToString()); //act Assert.That(result, Is.False); }
public void TeamExists_AndATeamExists_ReturnsTrue(WireDataFormat format) { //arrange var client = TestContext.CreateClientValidCredentials(format); var teamResources = new TeamApi(client.HttpChannel); var fundraiseResources = new PageApi(client.HttpChannel); var validRegisterPageRequest = ValidRegisterPageRequest(); fundraiseResources.Create(validRegisterPageRequest); var validRequest = ValidTeamRequest(validRegisterPageRequest.PageShortName); teamResources.CreateOrUpdate(validRequest); //act var result = teamResources.TeamExists(validRequest.TeamShortName); //act Assert.That(result, Is.True); }