Example #1
0
 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));
        }