Beispiel #1
0
        public void Flota_getAll()
        {
            //Act
            IEnumerable <Flota> result = objRepo.GetListaFlota(0, 495, 0);

            //Assert
            Assert.IsNotNull(result);
            //Assert.AreEqual(92, result.AsList().Count);
        }
Beispiel #2
0
        public ResultModel GetListadoFlota(int pintIdLCiente, int pintIdAnexo, string token)
        {
            ResultModel resultModel = CheckToken(token);

            try
            {
                if (resultModel.Result)
                {
                    resultModel.Payload = Tools.Base64Encode(JsonConvert.SerializeObject(_flotaRepository.GetListaFlota(0, pintIdAnexo, pintIdLCiente)));
                }
            }
            catch (Exception e)
            {
                resultModel.ErrorMessage = e.Message;
                resultModel.ErrorCode    = 10;
                resultModel.Payload      = String.Empty;
                resultModel.Result       = false;
                resultModel.Token        = String.Empty;
            }
            return(resultModel);
        }