public async Task SaveDataCommand_DatabaseSaved()
        {
            await _rateViewModel.Init();

            _localCurrencyService.Expect(x => x.AddRecordAsync(null)).IgnoreArguments().Return(Task.CompletedTask);

            await _rateViewModel.SaveDataCommand.ExecuteAsync();

            _localCurrencyService.VerifyAllExpectations();
        }
        public async Task ItemDeleteCommand_ViewRefreshed()
        {
            await _testViewModel.Init();

            _localCurrencyService.ClearBehavior();
            _localCurrencyService.Expect(x => x.DeleteRecordAsync("test2")).Return(Task.CompletedTask);
            _localCurrencyService.Stub(x => x.GetAllRecordsNamesAsync()).Return(Task.FromResult(new List <string> {
                "test1",
                "test3"
            }));

            await _testViewModel.Items[1].RemoveDataRecordCommand.ExecuteAsync();

            Assert.AreEqual(2, _testViewModel.Items.Count);
            Assert.AreEqual("test3", _testViewModel.Items[1].DisplayName);
            _localCurrencyService.VerifyAllExpectations();
        }