예제 #1
0
        public async Task GetBatchFileByGUID()
        {
            guid = new Guid("f010c170-852f-4926-20f6-08d91c38173c");
            var batchObj = new BatchFile
            {
                BatchId = guid
            };
            // iBatchService.Setup(x => x.GetBatchById(guid)).ReturnsAsync(batchObj);
            //var batchResult = await batchController.GetBatch(guid);
            var batchResult = await batchService.GetBatchById(guid);

            Assert.AreEqual(guid, batchResult.BatchId);
        }