public async Task EnterKey()
        {
            await uc.SignIn();

            await Create();

            var  storages = sc.GetStorages();
            bool result   = sc.EnterKey(storages.LastOrDefault().Name, "1111111111111111");

            Assert.IsTrue(result);
        }
Ejemplo n.º 2
0
        private void Submit_Click(object sender, EventArgs e)
        {
            EditText key = FindViewById <EditText>(Resource.Id.Key);

            StorageController sc = new StorageController();
            bool result          = sc.EnterKey(storage, key.Text);

            if (!result)
            {
                Toast.MakeText(Context, sc.Exceptions.FirstOrDefault().Message, ToastLength.Short).Show();
                return;
            }
            else
            {
                Cancel();
                Func?.Invoke();
            }
        }