private BankInfo CreateBankInfo(int ID, string name, string URI, string pattern, int buy, int sell) { var bankID = BankID.Create(ID); var bankName = BankName.Create(name); var bankURI = BankURI.Create(URI); var bankPattern = BankPattern.Create(pattern); var bankBuy = BankIndex.Create(buy); var bankSell = BankIndex.Create(sell); return(new BankInfo(bankID, bankName, bankURI, bankPattern, bankBuy, bankSell)); }
} //which Regex.Match corresponds to the sell rate public BankInfo(BankID id, BankName name, BankURI uri, BankPattern pattern, BankIndex buy, BankIndex sell) { CheckParameter(id, nameof(id)); CheckParameter(name, nameof(name)); CheckParameter(uri, nameof(uri)); CheckParameter(pattern, nameof(pattern)); CheckParameter(buy, nameof(buy)); CheckParameter(sell, nameof(sell)); this.ID = id; this.Name = name; this.URI = uri; this.Pattern = pattern; this.Buy = buy; this.Sell = sell; }
public void ChangeURI(BankURI bankURI) { CheckParameter(bankURI, nameof(bankURI)); this.URI = bankURI; }