public void CountAsync() { ClearDapperCompisiteKeyEntity(); try { CreateDapperCompisiteKeyEntity(1, 1, "2", "2", "5", "5"); CreateDapperCompisiteKeyEntity(1, 2, "2", "4", "5", "2"); CreateDapperCompisiteKeyEntity(2, 2, "3", "4", "5", "2"); CreateDapperCompisiteKeyEntity(3, 3, "3", "4", "5", "2"); CreateDapperCompisiteKeyEntity(4, 3, "3", "4", "5", "2"); int count = _dapper.CountAsync().GetAwaiter().GetResult(); Assert.Equal(5, count); } finally { ClearDapperCompisiteKeyEntity(); } }