public void Can_Add_AuditLog() { //Arrange IAuditLogRepository auditLogRepository = new AuditLogRepository(context); var log = new AuditLog { UserId = 1, EventMassage = "test", EventType = "test" }; //Act auditLogRepository.Add(log); var objectInDb = context.AuditLog.First(); //Assert Assert.True(context.AuditLog.Count() == 1); Assert.True(objectInDb.Id == 1); Assert.True(objectInDb.EventMassage == "test"); Assert.True(objectInDb.EventType == "test"); }