示例#1
0
 private static void ExpireViewTest()
 {
     Console.WriteLine("STARTET EXPIRING VIEW");
     SpeedServiceReference.ISpeedService speedService = new SpeedServiceReference.SpeedServiceClient();
     speedService.ExpireSalesRealtimeView();
     Console.ReadKey();
 }
示例#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();
        }
示例#3
0
        private static void InsertSaleRealtimeTest()
        {
            Console.WriteLine("STARTET INSERT SALE TEST SPEEDLAYER");

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

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

            sale.OrderDetails.Add(orderDetail);

            SpeedServiceReference.ISpeedService speedService = new SpeedServiceReference.SpeedServiceClient();

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