Exemple #1
0
        public async Task CanRegisterWithASocialLoginProviderFromRegister()
        {
            // Arrange
            void ConfigureTestServices(IServiceCollection services) =>
            services
            .SetupTestThirdPartyLogin();

            var client = ServerFactory
                         .WithWebHostBuilder(whb => whb.ConfigureServices(ConfigureTestServices))
                         .CreateClient();

            var guid     = Guid.NewGuid();
            var userName = $"{guid}";
            var email    = $"{guid}@example.com";

            // Act & Assert
            await UserStories.RegisterNewUserWithSocialLoginAsyncViaRegisterPage(client, userName, email);
        }