public void FetchWorkItemsSubjectsTest() { #region --Arrange -- QueryResult <string> result = null; #endregion #region --Act -- try { result = _workRepository.GetAllSubject(); if (result != null) { Trace.WriteLine(string.Format("Fetched Work Items By Subject: {0}", result.TotalRecords)); } } catch (Exception exception) { Trace.WriteLine(exception.Message); } #endregion #region --Assert -- Assert.IsNotNull(result); #endregion }
private QueryResult <string> GetSubjects() { return(SubjectList ?? _workRepository.GetAllSubject()); }