private async Task DeleteScene(MixPlayClient client, MixPlayConnectedSceneModel scene) { this.ClearPackets(); MixPlayConnectedSceneGroupCollectionModel scenes = await client.GetScenes(); Assert.IsNotNull(scenes); Assert.IsNotNull(scenes.scenes); Assert.IsTrue(scenes.scenes.Count >= 2); MixPlayConnectedSceneModel backupScene = scenes.scenes.FirstOrDefault(s => s.sceneID.Equals("default")); bool result = await client.DeleteSceneWithResponse(scene, backupScene); Assert.IsTrue(result); }
private async Task <MixPlayConnectedSceneModel> GetScene(MixPlayClient client) { this.ClearPackets(); MixPlayConnectedSceneGroupCollectionModel scenes = await client.GetScenes(); Assert.IsNotNull(scenes); Assert.IsNotNull(scenes.scenes); Assert.IsTrue(scenes.scenes.Count >= 2); MixPlayConnectedSceneModel testScene = scenes.scenes.FirstOrDefault(s => s.sceneID.Equals(SceneID)); Assert.IsNotNull(testScene); return(testScene); }