public async Task Destructive_Unprovision_not_called_when_MayDeleteUserData() { var ctx = Context.AllowDeleteUserData(); var destructive = new DestructiveUnprovision(); await Assert.ThrowsAsync<InvalidOperationException>(() => destructive.UnprovisionAsync(ctx)); }
public async Task Destructive_Unprovision_not_called_when_MayDeleteUserData() { var ctx = Context.AllowDeleteUserData(); var destructive = new DestructiveUnprovision(); await Assert.ThrowsAsync <InvalidOperationException>(() => destructive.UnprovisionAsync(ctx)); }
public async Task Unprovisioner_without_MayDeleteUserData_runs_with_context_MayDeleteUserData_true() { var ctx = Context.AllowDeleteUserData(); var prov = new DestructiveUnprovision(); prov.MayDeleteUserData = false; await Assert.ThrowsAsync<InvalidOperationException>(() => prov.UnprovisionAsync(ctx)); }
public async Task Unprovisioner_without_MayDeleteUserData_runs_with_context_MayDeleteUserData_true() { var ctx = Context.AllowDeleteUserData(); var prov = new DestructiveUnprovision(); prov.MayDeleteUserData = false; await Assert.ThrowsAsync <InvalidOperationException>(() => prov.UnprovisionAsync(ctx)); }
public async Task Destructive_Unprovision_not_called_by_default() { var destructive = new DestructiveUnprovision(); await destructive.UnprovisionAsync(Context); }
public async Task Destructive_Unprovision_not_called_by_default() { var destructive = new DestructiveUnprovision(); await destructive.UnprovisionAsync(Context); }