public async Task Handle_Adds_File_To_Appeals_File_Storage() { await _handler.Handle(_command, CancellationToken.None); _appealFileStorage.Verify(x => x.Add(_applicationId, It.Is <FileUpload>(file => file == _command.File), It.IsAny <CancellationToken>())); }
public async Task Handle_Records_Uploaded_File() { await _handler.Handle(_command, CancellationToken.None); _appealUploadRepository.Verify(x => x.Add(It.Is <AppealFile>(upload => upload.ApplicationId == _command.ApplicationId && upload.FileName == _command.AppealFile.FileName && upload.ContentType == _command.AppealFile.ContentType && upload.UserId == _command.UserId && upload.UserName == _command.UserName && upload.Size == _command.AppealFile.Data.Length ))); _auditService.Verify(x => x.Save()); }