Пример #1
0
    public void TestGetAllPrimaryKeys2()
    {
        var list = new List <PrimaryKey>();

        using (IRepository repo = new SQLiteRepository(infoConnectionString))
        {
            list = repo.GetAllPrimaryKeys();
        }
        Assert.IsTrue(list.Count == 12);
        Assert.IsTrue(list[0].KeyName == "CUSTOMER219ORDERS");
    }
Пример #2
0
    public void TestGetAllPrimaryKeys()
    {
        var list = new List <PrimaryKey>();

        using (IRepository repo = new SQLiteRepository(chinookConnectionString))
        {
            list = repo.GetAllPrimaryKeys();
        }
        Assert.IsTrue(list.Count == 12);
        Assert.IsTrue(list[0].KeyName == "sqlite_master_PK_Album");
    }
Пример #3
0
    public void TestGetAllPrimaryKeys2()
    {
        var list = new List <PrimaryKey>();

        using (IRepository repo = new SQLiteRepository(infoConnectionString))
        {
            list = repo.GetAllPrimaryKeys();
        }
        Assert.AreEqual(11, list.Count);
        Assert.AreEqual("CUSTOMER219ORDERS", list[0].KeyName);
    }
Пример #4
0
 public void TestGetAllPrimaryKeys2()
 {
     var list = new List<PrimaryKey>();
     using (IRepository repo = new SQLiteRepository(infoConnectionString))
     {
         list = repo.GetAllPrimaryKeys();
     }
     Assert.IsTrue(list.Count == 12);
     Assert.IsTrue(list[0].KeyName == "CUSTOMER219ORDERS");
 }
Пример #5
0
 public void TestGetAllPrimaryKeys()
 {
     var list = new List<PrimaryKey>();
     using (IRepository repo = new SQLiteRepository(chinookConnectionString))
     {
         list = repo.GetAllPrimaryKeys();
     }
     Assert.IsTrue(list.Count == 12);
     Assert.IsTrue(list[0].KeyName == "sqlite_master_PK_Album");
 }