public void TestTvEpisodeGetChanges() { ChangesContainer changes = Config.Client.GetTvEpisodeChangesAsync(IdHelper.BreakingBadSeason1Episode1Id).Result; Assert.NotNull(changes); Assert.NotNull(changes.Changes); }
public static string GetListFiles(string lstFiles) { string[] fls = lstFiles.Split('?'); ListOfChanges changes = new ListOfChanges(); FileChange c = null; foreach (string f in fls) { string ff = f.Replace("\"", "").Trim(); if (string.IsNullOrEmpty(ff)) { continue; } if (c == null) { c = new FileChange() { NEW = ff }; changes.Add(c); } else { c.BST = ff; c = null; } } return(ChangesContainer.Add(changes)); }
public void TestTvSeasonGetChanges() { ChangesContainer changes = _config.Client.GetTvSeasonChangesAsync(IdHelper.BreakingBadSeason1Id).Result; Assert.IsNotNull(changes); Assert.IsNotNull(changes.Changes); }
public void TestTvEpisodeGetChanges() { ChangesContainer changes = _config.Client.GetTvEpisodeChanges(BreakingBadSeason1Episode1Id); Assert.IsNotNull(changes); Assert.IsNotNull(changes.Changes); }
public string ProcessNewEtalons(List <FileChange> files, string branch) { string fx = Settings.CurrentSettings.BSTADDRESS; string sh = Settings.CurrentSettings.BSTSHARE; foreach (FileChange fc in files) { //legacy dir fixes if (!string.IsNullOrEmpty(fc.ETA)) { int pos = fc.ETA.IndexOf(fx); if (pos > -1) { fc.ETA = sh + fc.ETA.Remove(0, pos + fx.Length).Replace("/", "\\"); } } } return(ChangesContainer.Add(new ListOfChanges(files, branch))); }
public List <string> commitChangedFiles(string key, List <int> indexes, string comment, int runID) { if (!CurrentContext.Admin) { return(new List <string>(new string[] { "Access Denied" })); } List <string> output = ChangesContainer.Commit(key, indexes, comment, CurrentContext.GitUser); TestRun tr = new TestRun(runID.ToString()) { USERID = CurrentContext.UserID.ToString(), COMMENT = comment }; tr.AddTTID(CbstHelper.GetTTfromText(comment)); tr.Store(); CbstHelper.FeedLog("Etalon files have been committed to git repository: " + comment); return(output); }
public async Task <List <Change> > GetPersonChangesAsync(int personId, DateTime?startDate = null, DateTime?endDate = null, CancellationToken cancellationToken = default(CancellationToken)) { ChangesContainer changesContainer = await GetPersonMethod <ChangesContainer>(personId, PersonMethods.Changes, startDate : startDate, endDate : endDate, dateFormat : "yyyy-MM-dd HH:mm:ss UTC", cancellationToken : cancellationToken).ConfigureAwait(false); return(changesContainer.Changes); }
public async Task <List <Change> > GetMovieChangesAsync(int movieId, DateTime?startDate = null, DateTime?endDate = null) { ChangesContainer changesContainer = await GetMovieMethod <ChangesContainer>(movieId, MovieMethods.Changes, startDate : startDate, endDate : endDate, dateFormat : "yyyy-MM-dd HH:mm:ss UTC").ConfigureAwait(false); return(changesContainer.Changes); }
public async Task <IList <Change> > GetMovieChangesAsync(int movieId, int page = 0, DateTime?startDate = null, DateTime?endDate = null, CancellationToken cancellationToken = default) { ChangesContainer changesContainer = await GetChangesInternal <ChangesContainer>("movie", page, movieId, startDate, endDate, cancellationToken).ConfigureAwait(false); return(changesContainer.Changes); }
public ListOfChanges getChangedFiles(string key) { return(ChangesContainer.Get(key)); }
public List <Change> GetPersonChanges(int personId, DateTime?startDate = null, DateTime?endDate = null) { ChangesContainer changesContainer = GetPersonMethod <ChangesContainer>(personId, PersonMethods.Changes, startDate: startDate, endDate: endDate, dateFormat: "yyyy-MM-dd HH:mm:ss UTC"); return(changesContainer.Changes); }
public void FlushChanges() { //_changesContainer.Flush(); _changesContainer = new ChangesContainer <T>(); }