public void UploadFile_ReturnsActionResult() { _job = new Job(new JobInfo(), _profile, new JobTranslations(), _accounts); _job.OutputFiles = new[] { @"C:\Temp\file1.pdf" }.ToList(); _dropboxAction.ProcessJob(_job); _dropboxService.Received() .UploadFiles(_accessToken, _profile.DropboxSettings.SharedFolder, _job.OutputFiles, _profile.DropboxSettings.EnsureUniqueFilenames, _job.JobTempOutputFolder); }
public void Execute_UserAppliesInteraction_DropboxServiveRevokesToken() { _interactionRequest.RegisterInteractionHandler <MessageInteraction>(i => i.Response = MessageResponse.Yes); _dropboxAccountRemoveCommand.Execute(_usedAccount); _dropboxService.Received(1).RevokeToken(_usedAccount.AccessToken); }