Beispiel #1
0
        public async Task ErrorRate_GetOne_ReturnsOkObjectResultOnExistingIndex_Test()
        {
            var actual = await Err.GetOne(2);

            await Db.Connection.CloseAsync();

            Assert.IsInstanceOf <OkObjectResult>(actual);
        }
Beispiel #2
0
        public async Task ErrorRate_GetOne_ReturnsValue_Test()
        {
            var expected = await Err.GetOne(1);

            await Db.Connection.CloseAsync();

            Assert.IsNotNull(expected);
        }
Beispiel #3
0
        public async Task ErrorRate_GetOne_ReturnsNotFoundResultOnNullIndex_Test()
        {
            var actual = await Err.GetOne(999);

            await Db.Connection.CloseAsync();

            Assert.IsInstanceOf <NotFoundResult>(actual);
        }