public async Task Update() { var hostName = Recording.GenerateAssetName("testHost-"); DedicatedHost dedicatedHost = await CreateDedicatedHostAsync(hostName); var updatedAutoReplaceOnFailure = false; var update = new PatchableDedicatedHostData() { AutoReplaceOnFailure = updatedAutoReplaceOnFailure }; var lro = await dedicatedHost.UpdateAsync(WaitUntil.Completed, update); DedicatedHost updatedHost = lro.Value; Assert.AreEqual(updatedAutoReplaceOnFailure, updatedHost.Data.AutoReplaceOnFailure); }
public async Task Update() { var hostName = Recording.GenerateAssetName("testHost-"); DedicatedHost dedicatedHost = await CreateDedicatedHostAsync(hostName); var updatedAutoReplaceOnFailure = false; var update = new DedicatedHostUpdateOptions() { AutoReplaceOnFailure = updatedAutoReplaceOnFailure }; var lro = await dedicatedHost.UpdateAsync(true, update); DedicatedHost updatedHost = lro.Value; Assert.AreEqual(updatedAutoReplaceOnFailure, updatedHost.Data.AutoReplaceOnFailure); }