public void When_save_command_is_made_then_record_is_saved_files_are_reorganized_and_some_action_is_made()
        {
            Assume.That(_recordAlteringOperationViewModel.SaveCommand.CanExecute());
            _recordAlteringOperationViewModel.SaveCommand.Execute();

            _safe.Received(1).UpsertRecord(Arg.Is <Record>(r => r.Header.Id == _recordid));
            _safe.Received(1).ReorganizeFiles(_recordid);
            Assert.True(_isReloadActionCalled);
        }
 public void When_discarded_then_the_record_is_reoganized_in_safe_and_discard_action_is_executed()
 {
     _addOperationViewModel.DiscardCommand.Execute();
     _safe.Received(1).ReorganizeFiles(_uniqueId);
     Assert.True(_isDiscardActionPerformed);
 }