public void TearDown() { if (myTeamInfo != null) { fixture.DeleteTeam(myTeamInfo.Id); } }
public void ListByTeamIdTest() { var myTeam = fixture.CreateTeam("test team"); Assert.IsNotNull(myTeam); var space1 = CreateSpace("space1", myTeam.Id); var space2 = CreateSpace("space2", myTeam.Id); var spaces = ListSpaces(myTeam.Id); Assert.IsNotNull(spaces); Assert.IsNotNull(spaces.Find(space => space.Id == space1.Id)); Assert.IsNotNull(spaces.Find(space => space.Id == space2.Id)); DeleteSpace(space1.Id); DeleteSpace(space2.Id); fixture.DeleteTeam(myTeam.Id); }