public void AddAndGetAccount2() { IRepository <FrontiersDb> _repo = new LiteDBRepository <FrontiersDb>(_databaseSetting); var address = "xrb_39ymww61tksoddjh1e43mprw5r8uu1318it9z3agm7e6f96kg4ndqg9tuds4"; AccountConverter converter = new AccountConverter(); var accountUInt256 = converter.DecodeAccount(address); FrontiersDb frontierEntry = new FrontiersDb(); frontierEntry.Account = accountUInt256; _repo.Insert(frontierEntry); var accountFind = converter.DecodeAccount(address); var found = _repo.FindOneById(accountFind); Assert.NotNull(found); }
public void Passing() { AccountConverter converter = new AccountConverter(); var address = "xrb_39ymww61tksoddjh1e43mprw5r8uu1318it9z3agm7e6f96kg4ndqg9tuds4"; var decode = converter.DecodeAccount(address); var encode = converter.EncodeAccount(decode); Assert.Equal(address, encode); }