Example #1
0
        public async Task Should_success_GenerateExcel()
        {
            ReportGreigeWeavingPerGradeService service = new ReportGreigeWeavingPerGradeService(GetServiceProvider().Object, _dbContext(GetCurrentMethod()));

            var Utilservice = new ReportGreigeWeavingPerGradeService(GetServiceProvider().Object, _dbContext(GetCurrentMethod()));
            var data        = _dataUtil(service).GetTestData();

            InventoryWeavingDocumentUploadService serviceDoc = new InventoryWeavingDocumentUploadService(GetServiceProvider().Object, _dbContext(GetCurrentMethod()));

            var dataDoc = _dataUtilDoc(serviceDoc).GetTestData();
            //var Responses =  Utilservice.Create(data);

            var Service  = new ReportGreigeWeavingPerGradeService(GetServiceProvider().Object, _dbContext(GetCurrentMethod()));
            var Response = Utilservice.GenerateExcel(DateTime.UtcNow, 7);

            Assert.IsType <System.IO.MemoryStream>(Response);
        }
Example #2
0
        public async Task Should_success_GetStock()
        {
            ReportGreigeWeavingPerGradeService    service    = new ReportGreigeWeavingPerGradeService(GetServiceProvider().Object, _dbContext(GetCurrentMethod()));
            InventoryWeavingDocumentUploadService serviceDoc = new InventoryWeavingDocumentUploadService(GetServiceProvider().Object, _dbContext(GetCurrentMethod()));
            InventoryWeavingDocumentDataUtils     dataDoc1   = new InventoryWeavingDocumentDataUtils(serviceDoc);

            var Utilservice = new ReportExpenseGreigeWeavingService(GetServiceProvider().Object, _dbContext(GetCurrentMethod()));
            var data        = _dataUtil(service, dataDoc1).GetTestData();

            var dataDoc = _dataUtilDoc(serviceDoc).GetTestData();
            //var Responses =  Utilservice.Create(data);

            var Service  = new ReportExpenseGreigeWeavingService(GetServiceProvider().Object, _dbContext(GetCurrentMethod()));
            var Response = Utilservice.GetReportExpense("PRODUKSI", DateTime.UtcNow, DateTime.UtcNow, 25, 1, "{}", 7);

            Assert.NotNull(Response);
        }
        public void Should_Succes_GetMaterialItemList_NotNull_Material()
        {
            InventoryWeavingDocumentUploadService serviceDoc = new InventoryWeavingDocumentUploadService(GetServiceProvider().Object, _dbContext(GetCurrentMethod()));
            ReportGreigeWeavingPerGradeService    service    = new ReportGreigeWeavingPerGradeService(GetServiceProvider().Object, _dbContext(GetCurrentMethod()));
            InventoryWeavingDocumentAdjService    serviceAdj = new InventoryWeavingDocumentAdjService(GetServiceProvider().Object, _dbContext(GetCurrentMethod()));
            InventoryWeavingDocumentDataUtils     dataDoc1   = new InventoryWeavingDocumentDataUtils(serviceDoc);


            var data = _dataUtil(service, dataDoc1).GetTestData();

            //var dataDoc = _dataUtilDoc(serviceDoc).GetNewDataAdj();
            //var dataAdj = serviceAdj.Create(dataDoc);

            var Response = serviceAdj.GetMaterialItemList("Name");

            Assert.NotNull(Response);
        }
Example #4
0
 private ReportGreigeWeavingPerGradeDataUtil _dataUtil(ReportGreigeWeavingPerGradeService service, InventoryWeavingDocumentDataUtils dataDoc)
 {
     GetServiceProvider();
     return(new ReportGreigeWeavingPerGradeDataUtil(service, dataDoc));
 }
Example #5
0
 private ReportGreigeWeavingPerGradeDataUtil _dataUtil(ReportGreigeWeavingPerGradeService service)
 {
     GetServiceProvider();
     return(new ReportGreigeWeavingPerGradeDataUtil(service));
 }
Example #6
0
 public ReportGreigeWeavingPerGradeDataUtil(ReportGreigeWeavingPerGradeService service)
 {
     Service = service;
 }
 public ReportGreigeWeavingPerGradeDataUtil(ReportGreigeWeavingPerGradeService service, InventoryWeavingDocumentDataUtils dataDoc)
 {
     Service      = service;
     this.dataDoc = dataDoc;
 }