Beispiel #1
0
        public void FetchWorkItemsTest()
        {
            #region --Arrange --

            QueryResult <WorkItem> result = null;

            #endregion

            #region --Act --

            try
            {
                result = _workRepository.FindAll();
                if (result != null)
                {
                    Trace.WriteLine(string.Format("Fetched Work Items: {0}", result.Result.Count()));
                }
            }
            catch (Exception exception)
            {
                Trace.WriteLine(exception.Message);
            }
            #endregion

            #region --Assert --
            Assert.IsTrue(result != null && result.TotalRecords > 0 && result.Result.Count() == 10);
            #endregion
        }