public async Task ErrorRate_Put_ReturnsValue_Test() { ErrorRateData body = new ErrorRateData(); body.Time_Stamp = DateTime.Now; var expected = await Err.PutOne(1, body); await Db.Connection.CloseAsync(); Assert.IsNotNull(expected); }
public async Task ErrorRate_Put_ReturnsNotFoundResultOnNullIndex_Test() { ErrorRateData body = new ErrorRateData(); body.Time_Stamp = DateTime.Now; var actual = await Err.PutOne(999, body); await Db.Connection.CloseAsync(); Assert.IsInstanceOf <NotFoundResult>(actual); }
public async Task ErrorRate_Put_ReturnsOkObjectResultOnExistingIndex_Test() { ErrorRateData body = new ErrorRateData(); body.Time_Stamp = DateTime.Now; var actual = await Err.PutOne(2, body); await Db.Connection.CloseAsync(); Assert.IsInstanceOf <OkObjectResult>(actual); }