Ejemplo n.º 1
0
        public async Task <TEntity> GetItem(TKey id)
        {
            dynamic idValue  = id;
            var     document = await _entityTable.GetItemAsync(idValue);

            return(_mapper.ToEntity(document));
        }
 public void ToEntity_GivenClassFooWithNoBackingField_ShouldThrowException()
 {
     Assert.That(() => Mapper.ToEntity(_documentFoo),
                 Throws.Exception.TypeOf <FluentDynamoDbMappingException>()
                 .With
                 .Message
                 .EqualTo("Could not find backing field named _bars of type FluentDynamoDb.Tests.Mappers.DynamoDbMapperWithObjectListUsingCamelCaseUnderscoreFieldToEntityWithNoBackingFieldTests+Foo"));
 }