public void ValidateWallet_NullCurrency_ThrowException()
        {
            var wallet = new Wallet
            {
                Name = "Test name",
                Currency = null
            };

            var walletService = new WalletService(ProvidersFactory.GetNewWalletsProviders());
            walletService.Validate(wallet);
        }
        public void ValidateWallet_EmptyName_ThrowException()
        {
            var wallet = new Wallet
            {
                Name = string.Empty,
                Currency = new Currency()
            };

            var walletService = new WalletService(ProvidersFactory.GetNewWalletsProviders());
            walletService.Validate(wallet);
        }
        public void ValidateWallet_ValidWallet_ReturnTrue()
        {
            var wallet = new Wallet
            {
                Name = "Test name",
                Currency = new Currency
                {
                    Name = "Default currency",
                    Code = "DC",
                    Symbol = "C"
                }
            };

            var walletService = new WalletService(ProvidersFactory.GetNewWalletsProviders());
            Assert.DoesNotThrow(() => walletService.Validate(wallet));
        }
 public void ValidateWallet_NullWallet_ThrowException(Wallet wallet)
 {
     var walletService = new WalletService(ProvidersFactory.GetNewWalletsProviders());
     walletService.Validate(wallet);
 }