Beispiel #1
0
        public async Task TestDeleteExistingRecordReturnsTrue()
        {
            await PocoView.UpsertAsync(null, GetPoco(1, "1"));

            Assert.IsTrue(await PocoView.DeleteAsync(null, GetPoco(1)));
            Assert.IsNull(await PocoView.GetAsync(null, GetPoco(1)));
        }
Beispiel #2
0
 public async Task TestDeleteNonExistentRecordReturnFalse()
 {
     Assert.IsFalse(await PocoView.DeleteAsync(null, GetPoco(-1)));
 }