コード例 #1
0
        public async Task RegistrationShouldSucceed()
        {
            Product product = await TestOperations.CreateProductAndPublish(_fixture.Context);

            string email    = RandomData.Email();
            string username = RandomData.RandomString();
            string password = RandomData.RandomString(12, true);

            UserRegistration operation = new UserRegistration(_fixture.Context, product.Id, email, username, password);
            await operation.Do();

            await operation.CommitAsync();
        }