예제 #1
0
        protected override async Task OnServerUpAsync()
        {
            await StreamsClient.WarmUpAsync();

            await UserManagementClient.CreateUserWithRetry(TestCredentials.TestUser1.Username !,
                                                           TestCredentials.TestUser1.Username !, Array.Empty <string>(), TestCredentials.TestUser1.Password !,
                                                           TestCredentials.Root);
        }
예제 #2
0
        protected override async Task OnServerUpAsync()
        {
            await StreamsClient.WarmUpAsync();

            await UserManagementClient.CreateUserWithRetry(TestCredentials.TestUser1.Username !,
                                                           TestCredentials.TestUser1.Username !, Array.Empty <string>(), TestCredentials.TestUser1.Password !,
                                                           TestCredentials.Root).WithTimeout();

            await StandardProjections.Created(Client).WithTimeout(TimeSpan.FromMinutes(5));

            if (RunStandardProjections)
            {
                await Task.WhenAll(StandardProjections.Names.Select(name =>
                                                                    Client.EnableAsync(name, TestCredentials.Root)));
            }
        }