public void MapTransactionToDton_EmptySource_ShouldSucceed() { var mapper = new EthereumTransactionMapper(); var source = new EthereumTransaction(); // act var actual = mapper.Map(source); // assert Assert.NotNull(actual); }
public void MapTransactionToDto_BlockNumber_ShouldSucceed() { var mapper = new EthereumTransactionMapper(); var source = new EthereumTransaction { BlockNumber = "12345" }; // act var actual = mapper.Map(source); // assert Assert.NotNull(actual); Assert.Equal("12345", actual.BlockNumber); }