src/fursvp.data/FakeRepository.cs
/// <summary>
/// Overwrites an existing document representing <see ref="TEntity" /> in memory.
/// </summary>
/// <param name="entity">The entity to persist to memory.</param>
/// <returns>An asynchronous <see cref="Task{TEntity}"/>.</returns>
Overwrites an existing document representing  in memory.
Overwrites an existing document representing in memory .
public Task Update(TEntity entity)
        {
            Entities.RemoveAll(e => e.Id == entity.Id);
            Insert(entity);
            return Task.CompletedTask;
        }
public Task Update ( TEntity entity ) { Entities . RemoveAll ( e => e . Id == entity . Id ) ; Insert ( entity ) ; return Task . CompletedTask ; }
Overwrites an existing document representing  in memory.
Overwrites an existing document representing in memory .
An asynchronous .
An asynchronous .
entity
TEntity
The entity to persist to memory.
The entity to persist to memory .