MongoPersistedGrantEntity __map__(PersistedGrant data) { data.Should().NotBeNull(); var res = this.wcloud_context.ObjectMapper.Map <PersistedGrant, MongoPersistedGrantEntity>(data); return(res); }
public async Task StoreAsync(PersistedGrant grant) { grant.Should().NotBeNull(); var entity = this.__map__(grant); entity.CreateTimeUtc = DateTime.UtcNow; await this._repo.InsertAsync(entity); }