示例#1
0
        public void TestAddNew()
        {
            AdminLogService service = new AdminLogService();
            long            logId   = service.AddNew(5, "测试消息");

            Assert.AreEqual(service.GetById(logId).Message, "测试消息");
        }
示例#2
0
        public void TestAddNew()
        {
            AdminLogService adsService  = new AdminLogService();
            long            id          = adsService.AddNew(2, "测试信息");
            AdminLogDTO     adminLogDto = adsService.GetById(id);

            Assert.AreEqual(id, adminLogDto.Id);
            Assert.AreEqual("测试信息", adminLogDto.Msg);
        }