private void SetUpAccounts() { var testAccounts = AutoFilled.Set(this, TestAccount.FromAlias); var lookup = testAccounts.ToDictionary(a => a.Id.ToString()); var pattern = string.Join("|", testAccounts.Select(a => a.Id)); Alias = o => Regex.Replace(o.ToString(), pattern, match => lookup[match.Groups[0].Value].Alias); }
private void SetupNamedMembers() { SetUpAccounts(); AutoFilled.Set(this, Currency.FromString); }