public static void InsertCoinsFromTestInput( this IVendingMachineService service, WalletDto wallet) { if (wallet.OneEuroCoinAmount > 0) { service.InsertCoins(CoinType.OneEuro, wallet.OneEuroCoinAmount); } if (wallet.FiftyCentCoinAmount > 0) { service.InsertCoins(CoinType.FiftyCent, wallet.FiftyCentCoinAmount); } if (wallet.TwentyCentCoinAmount > 0) { service.InsertCoins(CoinType.TwentyCent, wallet.TwentyCentCoinAmount); } if (wallet.TenCentCoinAmount > 0) { service.InsertCoins(CoinType.TenCent, wallet.TenCentCoinAmount); } }