public void TearDown() { if (myTeamInfo != null) { fixture.DeleteTeam(myTeamInfo.Id); } }
public void ListByTeamIdTest() { var myTeam = fixture.CreateTeam("test team"); Assert.IsNotNull(myTeam); var room1 = CreateRoom("room1", myTeam.Id); var room2 = CreateRoom("room2", myTeam.Id); var rooms = ListRooms(myTeam.Id); Assert.IsNotNull(rooms); Assert.IsNotNull(rooms.Find(room => room.Id == room1.Id)); Assert.IsNotNull(rooms.Find(room => room.Id == room2.Id)); DeleteRoom(room1.Id); DeleteRoom(room2.Id); fixture.DeleteTeam(myTeam.Id); }