Exemplo n.º 1
0
        public void TestInsert()
        {
            UID uid = new UID();

            uid.Uid            = "68563427";
            uid.Quantity       = "5";
            uid.Source         = "source";
            uid.Event_date_UMS = "5765475";
            uid.Entry_date     = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds().ToString();
            //SQLiteDBConnection.GetConnection();
            SQLiteDBConnection.Insert(uid);
        }
Exemplo n.º 2
0
        public void TestRandomUID()
        {
            int i = 0;

            String[] names = { "UID", "RMA" };
            Random   rand  = new Random();

            while (i < 800000)
            {
                UID    uid          = new UID();
                String result       = names[rand.Next(names.Length)];
                int    randomNumber = rand.Next(10000000, 99999999);
                uid.Uid            = result + randomNumber;
                uid.Quantity       = "4";
                uid.Source         = "random";
                uid.Event_date_UMS = GetRandomTime();
                SQLiteDBConnection.Insert(uid);
                //string status2 = SQLiteDBConnection.StartTrigger();
                //Assert.IsNotNull(status);
                //Assert.AreEqual("Entry date updated", status2);
                i++;
            }
        }