Example #1
0
        MongoPersistedGrantEntity __map__(PersistedGrant data)
        {
            data.Should().NotBeNull();
            var res = this.wcloud_context.ObjectMapper.Map <PersistedGrant, MongoPersistedGrantEntity>(data);

            return(res);
        }
Example #2
0
        public async Task StoreAsync(PersistedGrant grant)
        {
            grant.Should().NotBeNull();

            var entity = this.__map__(grant);

            entity.CreateTimeUtc = DateTime.UtcNow;

            await this._repo.InsertAsync(entity);
        }