protected virtual IMultiTenantStore PopulateTestStore(IMultiTenantStore store)
    {
        store.TryAddAsync(new TenantInfo("initech-id", "initech", "Initech", "connstring", null)).Wait();
        store.TryAddAsync(new TenantInfo("lol-id", "lol", "Lol, Inc.", "connstring2", null)).Wait();

        return(store);
    }
        protected virtual IMultiTenantStore <TenantInfo> PopulateTestStore(IMultiTenantStore <TenantInfo> store)
        {
            store.TryAddAsync(new TenantInfo {
                Id = "initech-id", Identifier = "initech", Name = "Initech", ConnectionString = "ConnString"
            }).Wait();
            store.TryAddAsync(new TenantInfo {
                Id = "lol-id", Identifier = "lol", Name = "Lol, Inc.", ConnectionString = "ConnString2"
            }).Wait();

            return(store);
        }
        public async Task <bool> TryAddAsync(string id, string identifier, string name, string connectionString)
        {
            if (connectionString is null)
            {
                connectionString = "ConnectionString";
            }

            return(await _tenantStore.TryAddAsync(
                       new TenantInfo(
                           id,
                           id.Replace("-", ""),
                           name,
                           connectionString,
                           null)));
        }