public async Task Test_tickets_sequence()
        {
            // Send email verification ticket
            var verificationTicketRequest = new EmailVerificationTicketRequest
            {
                UserId = user.UserId,
                ResultUrl = "http://www.nonexistingdomain.aaa/success"
            };
            var verificationTicketResponse = await apiClient.Tickets.CreateEmailVerificationTicket(verificationTicketRequest);
            verificationTicketResponse.Should().NotBeNull();
            verificationTicketResponse.Value.Should().NotBeNull();

            // Send password change ticket
            var changeTicketRequest = new PasswordChangeTicketRequest
            {
                UserId = user.UserId,
                ResultUrl = "http://www.nonexistingdomain.aaa/success",
                NewPassword = "******"
            };
            var changeTicketRsponse = await apiClient.Tickets.CreatePasswordChangeTicket(changeTicketRequest);
            changeTicketRsponse.Should().NotBeNull();
            changeTicketRsponse.Value.Should().NotBeNull();
        }
Exemple #2
0
 public Task<Ticket> CreatePasswordChangeTicket(PasswordChangeTicketRequest request)
 {
     return CreatePasswordChangeTicketAsync(request);
 }
Exemple #3
0
 /// <summary>
 /// Creates a password change ticket.
 /// </summary>
 /// <param name="request">The <see cref="PasswordChangeTicketRequest" /> containing the details of the ticket to create.</param>
 /// <returns>The <see cref="Ticket" />.</returns>
 public Task<Ticket> CreatePasswordChangeTicketAsync(PasswordChangeTicketRequest request)
 {
     return Connection.PostAsync<Ticket>("tickets/password-change", request, null, null, null, null, null);
 }