예제 #1
0
        public void Test1AuditInsert()
        {
            var model = new ActionAuditModel
            {
                Action    = "Test1Auditinsert",
                Component = "TestAuditRepository",
                User      = "******",
                Value     = "test"
            };

            repository.AuditAction(model);

            var newModel = repository.GetAction(model);

            Assert.IsTrue(model.User.Equals(newModel.User));
            Assert.IsTrue(model.Action.Equals(newModel.Action));
            Assert.IsTrue(model.Component.Equals(newModel.Component));
            Assert.IsTrue(model.Value.Equals(newModel.Value));
        }