Ejemplo n.º 1
0
        protected async Task <(Realm Realm, string UserId)> CreateRandomRealmAsync(string path)
        {
            var user = await SyncTestHelpers.GetUserAsync();

            var location = Path.Combine(UserRealmFolder, user.Identity, path);

            Directory.CreateDirectory(Path.GetDirectoryName(location));
            var config = new FullSyncConfiguration(new Uri($"~/{path}", UriKind.Relative), user, location);
            var realm  = GetRealm(config);
            await SyncTestHelpers.WaitForUploadAsync(realm);

            return(realm, user.Identity);
        }