public async Task Transaction_GetOne_ReturnsNotFoundResultOnNullIndex_Test() { var actual = await Tra.GetOne(999); await Db.Connection.CloseAsync(); Assert.IsInstanceOf <NotFoundResult>(actual); }
public async Task Transaction_GetOne_ReturnsOkObjectResultOnExistingIndex_Test() { var actual = await Tra.GetOne(2); await Db.Connection.CloseAsync(); Assert.IsInstanceOf <OkObjectResult>(actual); }
public async Task Transaction_GetOne_ReturnsValue_Test() { var expected = await Tra.GetOne(1); await Db.Connection.CloseAsync(); Assert.IsNotNull(expected); }