public void setAsUploadedTest() { //** handler.recordingCreate(stationId, authCode, DateTime.Now, false); handler.recordingDone(stationId, authCode, handler.RecordingId); handler.setAsUploaded(stationId, authCode, handler.RecordingId); Assert.AreEqual(handler.Status, true); }
/// <summary> /// Calls setAsUploaded handler and updates status if success. /// </summary> /// <param name="handler">BroadcastLoggerHandler instance.</param> /// <param name="cur">Current item in queue.</param> private void recordUploadedHelper(BroadcastLoggerHandler handler, StorageResult cur) { bool succeeded = handler.setAsUploaded(cur.StationID, authCode, Int32.Parse(cur.RecordID)); if (succeeded) { cur.Status = Status.SET_UPLOADED; storage.UpdateStatus(Int32.Parse(cur.UploadID), Status.SET_UPLOADED); } }