コード例 #1
0
        public async Task Transaction_DeleteOne_ReturnsValue_Test()
        {
            var expected = await Tra.DeleteOne(1);

            await Db.Connection.CloseAsync();

            Assert.IsNotNull(expected);
        }
コード例 #2
0
        public async Task Transaction_DeleteOne_ReturnsNotFoundResultOnNullIndex_Test()
        {
            var actual = await Tra.DeleteOne(999);

            await Db.Connection.CloseAsync();

            Assert.IsInstanceOf <NotFoundResult>(actual);
        }