public void CreateAllWalletForUser(string userId) { var repositoryConfig = new RepositoryConfiguration() { ConnectionString = AppSettingHelper.GetDbConnection() }; var persistence = new VakapayRepositoryMysqlPersistenceFactory(repositoryConfig); _walletBusiness = new Vakapay.WalletBusiness.WalletBusiness(persistence); var user = new User(); user.Id = userId; //blockChain.Name = NetworkName.ETH; //var resultTest = _walletBusiness.CreateNewWallet(user, blockChain.Name); //Assert.AreEqual(Status.StatusSuccess, resultTest.Status); //blockChain.Name = NetworkName.BTC; //_walletBusiness.CreateNewWallet(user, blockChain.Name); //Assert.AreEqual(Status.StatusSuccess, resultTest.Status); //blockChain.Name = NetworkName.VAKA; //_walletBusiness.CreateNewWallet(user, blockChain.Name); var resultTest = _walletBusiness.MakeAllWalletForNewUser(user); Console.WriteLine(JsonHelper.SerializeObject(resultTest)); Assert.AreEqual(Status.STATUS_SUCCESS, resultTest.Status); }
public void CheckUserAndMakeWallet() { List <User> users = _userBusiness.FindAllUser(); foreach (User user in users) { Console.WriteLine(user.Id); _walletBusiness.MakeAllWalletForNewUser(user); } }