src/fursvp.data/FakeRepository.cs
/// <summary>
/// Searches for a newer version of <see ref="TEntity" /> in memory if it exists and returns it if found.
/// </summary>
/// <param name="guid">The globally unique identifier for the entity.</param>
/// <param name="version">The presumed most recent version of the entity document.</param>
/// <returns>The newer version of the entity if it exists. Otherwise, null.</returns>
Searches for a newer version of  in memory if it exists and returns it if found.
Searches for a newer version of in memory if it exists and returns it if found .
public async Task<TEntity> GetNewerVersionIfExists(Guid guid, int version)
        {
            var @entityInMemory = await GetById(guid).ConfigureAwait(false);
            if (@entityInMemory?.Version > version)
            {
                return @entityInMemory;
            }
            return default(TEntity);
        }
public async Task < TEntity > GetNewerVersionIfExists ( Guid guid , int version ) { var @entityInMemory = await GetById ( guid ) . ConfigureAwait ( false ) ; if ( @entityInMemory ? . Version > version ) { return @entityInMemory ; } return default ( TEntity ) ; }
Searches for a newer version of  in memory if it exists and returns it if found.
Searches for a newer version of in memory if it exists and returns it if found .
The newer version of the entity if it exists. Otherwise, null.
The newer version of the entity if it exists . Otherwise null .
guid
Guid
The globally unique identifier for the entity.
The globally unique identifier for the entity .
version
int
The presumed most recent version of the entity document.
The presumed most recent version of the entity document .