Example #1
0
 private static void ComputeSalesByYearBatchViewTest()
 {
     Console.WriteLine("STARTET COMPUTE SALES BY YEAR BATCH VIEWS");
     BatchServiceReference.IBatchService batchService = new BatchServiceReference.BatchServiceClient();
     batchService.ComputeSalesByYearBatchView();
     Console.ReadKey();
 }
Example #2
0
        private static void ConnectionTest()
        {
            Console.WriteLine("STARTET CONNECTION TEST");

            BatchServiceReference.IBatchService batchService = new BatchServiceReference.BatchServiceClient();
            SpeedServiceReference.ISpeedService speedService = new SpeedServiceReference.SpeedServiceClient();
            QueryServiceReference.IQueryService queryService = new QueryServiceReference.QueryServiceClient();


            Console.WriteLine(batchService.DoWork() + speedService.DoWork() + queryService.DoWork());
            Console.ReadKey();
        }
Example #3
0
        private static void InsertSaleBatchTest()
        {
            Console.WriteLine("STARTET INSERT SALE TEST BATCH LAYER");

            SalesOrderDetail orderDetail = new SalesOrderDetail
            {
                ProductId = 577,
                Quantity  = 7
            };

            SalesOrderHeader sale = new SalesOrderHeader
            {
                OrderDate = new DateTime(2023, 01, 01)
            };

            sale.OrderDetails.Add(orderDetail);

            BatchServiceReference.IBatchService batchService = new BatchServiceReference.BatchServiceClient();

            batchService.HandleNewSale(sale);
            Console.ReadKey();
        }