public async Task DeleteAcccount() { // Arrange await this.SetupAccount(); // Act await this.defaultAccountClient.DeleteAccountAsync(new DeleteAccountBindingModel { Password = ApiClient.GetUserPassword(99) }); await new Application.Jobs.UserCleanupJob(Startup.Container).Handle(); }
public static async Task <TClientType> GetAuthenticatedClient <TClientType>(int user) where TClientType : ImperaHttpClient { return(await GetAuthenticatedClient <TClientType>( "TestUser" + user, ApiClient.GetUserPassword(user))); }