Exemplo n.º 1
0
        public async Task <ActionResult <BatchOutput> > GetCurrentState(int?groupId = null)
        {
            var batches = await _processorService.GetCurrentState(groupId);



            var response = new BatchOutput()
            {
                IsProcessCompleted = ProcessorService.IsProcessCompleted,
                CurrentGroupId     = ProcessorService.GroupId,
                BatchList          = batches
            };

            return(Ok(response));
        }
Exemplo n.º 2
0
 protected UnitTestData()
 {
     BatchItems = new List <Batch>()
     {
         Batch1, Batch2, Batch3, Batch4, Batch5, Batch6
     };
     BatchOutput = new BatchOutput()
     {
         BatchList          = BatchItems,
         CurrentGroupId     = 1,
         IsProcessCompleted = true
     };
     BatchInput = new BatchInput()
     {
         BatchSize = 2, ItemsPerBatch = 2
     };
 }