示例#1
0
        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
        }
示例#2
0
 private QueryResult <string> GetSubjects()
 {
     return(SubjectList ?? _workRepository.GetAllSubject());
 }