private static void ExpireViewTest() { Console.WriteLine("STARTET EXPIRING VIEW"); SpeedServiceReference.ISpeedService speedService = new SpeedServiceReference.SpeedServiceClient(); speedService.ExpireSalesRealtimeView(); Console.ReadKey(); }
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(); }
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(); }