public async Task ErrorRate_GetOne_ReturnsOkObjectResultOnExistingIndex_Test() { var actual = await Err.GetOne(2); await Db.Connection.CloseAsync(); Assert.IsInstanceOf <OkObjectResult>(actual); }
public async Task ErrorRate_GetOne_ReturnsValue_Test() { var expected = await Err.GetOne(1); await Db.Connection.CloseAsync(); Assert.IsNotNull(expected); }
public async Task ErrorRate_GetOne_ReturnsNotFoundResultOnNullIndex_Test() { var actual = await Err.GetOne(999); await Db.Connection.CloseAsync(); Assert.IsInstanceOf <NotFoundResult>(actual); }