public void NoMappingClass_ReturnsDefaultMapper() { var mapper = DapperExtensions.GetMap <EntityWithoutMapper>(); Assert.AreEqual(typeof(AutoClassMapper <EntityWithoutMapper>), mapper.GetType()); }
public void ClassMapperDescendant_Returns_DefinedClass() { var mapper = DapperExtensions.GetMap <EntityWithMapper>(); Assert.AreEqual(typeof(EntityWithMapperMapper), mapper.GetType()); }
public void ClassMapperInterface_Returns_DefinedMapper() { var mapper = DapperExtensions.GetMap <EntityWithInterfaceMapper>(); Assert.AreEqual(typeof(EntityWithInterfaceMapperMapper), mapper.GetType()); }