Esempio n. 1
0
 public MockResponseProvider(List <MockResponse> responses = null)
 {
     if (responses != null)
     {
         Responses.AddRange(responses);
     }
 }
Esempio n. 2
0
        private void LoadGrid()
        {
            IList <PaymentSettingsModel> entityList = localSql.GetPaymentMethodsList();

            Responses.Clear();
            if (!entityList.Any())
            {
                return;
            }
            Responses.AddRange(entityList);
        }
Esempio n. 3
0
        private void LoadGrid()
        {
            IList <DocumentType> records = localSql.GetDocumentMappings();

            Responses.Clear();
            if (!records.Any())
            {
                return;
            }
            Responses.AddRange(records);
        }
        private void BindShippingMethods()
        {
            StatusUpdate.StatusMessage = Utilities.GetResourceValue("Loading");
            Responses.Clear();
            IList <ShipmentSettingsModel> records = localSql.GetShipmentMethodsList(SearchModel);

            if (!records.Any())
            {
                return;
            }
            Responses.AddRange(records);
            StatusUpdate.StatusMessage = Utilities.GetResourceValue("DefaultStatus");
        }
Esempio n. 5
0
 public StreamedDataResponse(IEnumerable <Types.Payload> items)
 {
     Responses.AddRange(items);
 }