Exemple #1
0
        static void Main(string[] args)
        {
            var function = new MaintenanceHandler();
            var context  = new TestLambdaContext();

            context.RemainingTime = TimeSpan.FromHours(50);
            context.Logger        = new ConsoleLogger();

            var invokeAction = new LambdaInvokeAction
            {
                Action = CumulusConstants.MaintenanceAction.CalculateNumberOfTrades,
            };

            function.Invoke(invokeAction, context).Wait();

            //var function = new Handler();
            //var context = new TestLambdaContext();
            //context.RemainingTime = TimeSpan.FromHours(50);
            //context.Logger = new ConsoleLogger();

            //var lambdaInvokeAction = new LambdaInvokeAction
            //{
            //    Action = CumulusConstants.LambdaManagerAction.RoutePendingObjects
            //};

            //function.Invoke(lambdaInvokeAction, context).Wait();
            Console.WriteLine("DONE !!!!!!!!!!!!");
            Console.ReadLine();
        }
Exemple #2
0
        public void TestToUpperFunction()
        {
            // Invoke the lambda function and confirm the string was upper cased.
            var function = new MaintenanceHandler();
            var context  = new TestLambdaContext();

            var invokeAction = new LambdaInvokeAction
            {
                Action = "",
            };

            function.Invoke(invokeAction, context).Wait();
        }
Exemple #3
0
        public void TestRerouteEurexDeadMessages()
        {
            var function = new MaintenanceHandler();
            var context  = new TestLambdaContext();

            context.RemainingTime = TimeSpan.FromMinutes(5);

            var invokeAction = new LambdaInvokeAction
            {
                Action = CumulusConstants.MaintenanceAction.RerouteEurexDeadMessages,
            };

            function.Invoke(invokeAction, context).Wait();
        }
Exemple #4
0
        public void TestImportProductsXetra()
        {
            var function = new MaintenanceHandler();
            var context  = new TestLambdaContext();

            context.RemainingTime = TimeSpan.FromMinutes(5);

            var invokeAction = new LambdaInvokeAction
            {
                Action = CumulusConstants.MaintenanceAction.ImportProductXetra,
            };

            function.Invoke(invokeAction, context).Wait();
        }