Esempio n. 1
0
        public async Task Transaction_GetOne_ReturnsNotFoundResultOnNullIndex_Test()
        {
            var actual = await Tra.GetOne(999);

            await Db.Connection.CloseAsync();

            Assert.IsInstanceOf <NotFoundResult>(actual);
        }
Esempio n. 2
0
        public async Task Transaction_GetOne_ReturnsOkObjectResultOnExistingIndex_Test()
        {
            var actual = await Tra.GetOne(2);

            await Db.Connection.CloseAsync();

            Assert.IsInstanceOf <OkObjectResult>(actual);
        }
Esempio n. 3
0
        public async Task Transaction_GetOne_ReturnsValue_Test()
        {
            var expected = await Tra.GetOne(1);

            await Db.Connection.CloseAsync();

            Assert.IsNotNull(expected);
        }