public void GetByIdThrows_When_IdDoesNotExist() { chainblock.Add(simpleTransaction); Assert.Throws <InvalidOperationException>(() => chainblock.GetById(simpleTransaction.Id + 1)); }
public void GetByIdShouldThrowWhenTransactionDoesntExist() { chainBlock.Add(validTransaction); Assert.Throws <InvalidOperationException>(() => chainBlock.GetById(6)); }