public async Task ChangeKey() { await uc.SignIn(); await Create(); var storages = sc.GetStorages(); string key = "2222222222222222"; bool result = await sc.ChangeKey(storages.LastOrDefault().Name, "1111111111111111", key, key); Assert.IsTrue(result); }
private async void Submit_Click(object sender, EventArgs e) { EditText oldKey = FindViewById <EditText>(Resource.Id.OldKey); EditText newKey = FindViewById <EditText>(Resource.Id.NewKey); EditText confirmKey = FindViewById <EditText>(Resource.Id.ConfirmKey); StorageController sc = new StorageController(); Succes = await sc.ChangeKey(storage, oldKey.Text, newKey.Text, confirmKey.Text); if (!Succes) { Toast.MakeText(Context, sc.Exceptions.FirstOrDefault().Message, ToastLength.Short).Show(); return; } else { Cancel(); Func?.Invoke(); } }