Exemplo n.º 1
0
        /// <summary>
        /// Deletes all imposters from mountebank. Will also remove the imposter from the collection
        /// of imposters that the client maintains.
        /// </summary>
        public async Task DeleteAllImpostersAsync()
        {
            await _requestProxy.DeleteAllImpostersAsync().ConfigureAwait(false);

            Imposters = new List <Imposter>();
        }
Exemplo n.º 2
0
        /// <summary>
        /// Deletes all imposters from mountebank. Will also remove the imposter from the collection
        /// of imposters that the client maintains.
        /// </summary>
        public async Task DeleteAllImpostersAsync(CancellationToken cancellationToken = default)
        {
            await _requestProxy.DeleteAllImpostersAsync(cancellationToken).ConfigureAwait(false);

            Imposters = new List <Imposter>();
        }