Example #1
0
        public void Test_getAllUnExpiredPosts()
        {
            List <String> listPosts = new List <String> {
                "52"
            };

            var           result    = DbLayer.GetAllUnexpiredPosts("4233543");
            List <String> postNames = new List <String>();

            foreach (var item in result)
            {
                postNames.Add(item.postNumber.ToString());
            }

            CollectionAssert.AreEqual(listPosts, postNames);
        }