public void TesteHandlerTodos()
 {
     SqlHandler.AddBool();
     SqlHandler.AddEnumChar <Situacao>();
     SqlHandler.AddEnumString <Status>();
     List <EnumBoolModelStringCharBool> retorno = _repository.GetAllHandlerTodos(_qtdRegistros);
 }
Ejemplo n.º 2
0
 public TestHandlers()
 {
     SqlHandler.AddBool();
     SqlHandler.AddEnumChar <CharEnum>();
     SqlHandler.AddEnumString <StringEnum>();
     SqlHandler.AddGuid();
     new DbCreator()
     .UseEntity <DatabaseModel>();
 }
 public void TesteHandlerChar()
 {
     SqlHandler.AddEnumChar <Situacao>();
     List <EnumBoolModelChar> retorno = _repository.GetAllHandlerChar(_qtdRegistros);
 }
Ejemplo n.º 4
0
        public void RegisterHandlerofCharEnumNotMapped()
        {
            Action test = () => { SqlHandler.AddEnumChar <CharEnumNotMapped>(); };

            test.ShouldThrow <EnumCharNotMappedException <CharEnumNotMapped> >();
        }