コード例 #1
0
        public void user_must_see_correct_amount_of_his_own_messages_newest_then_specific_date()
        {
            var userMessagesQuery = _userMessageService.FindMessagesCreatedByUserNewestThan(DatabaseHelper.UserTest4.Id, DateTime.UtcNow.AddDays(-8));
            var userMessages      = userMessagesQuery.Where(x => x.Message.Mind.StartsWith("UserMessageRepositoryTest")).ToList();

            Assert.AreEqual(3, userMessages.Count, "User must see correct amount of messages newest then specific date");
        }