public void Insert_Test1() { using (var dbConnection = new MemberDb()) { var memberToDb = new Member { Id = Guid.NewGuid(), Name = "Yao", Age = 12 }; var count = dbConnection.Insert(memberToDb); Assert.IsTrue(count > 0); } }
private static Member InsertTestRecord() { using (var dbConnection = new MemberDb()) { var memberToDb = new Member { Id = Guid.NewGuid(), Name = "Yao", Age = 12 }; var count = dbConnection.Insert(memberToDb); return(memberToDb); } }