示例#1
0
        /// <summary>
        /// A simple function that takes a string and does a ToUpper
        /// </summary>
        /// <param name="input"></param>
        /// <param name="context"></param>
        /// <returns></returns>
        public TaskReport FunctionHandler(Arguments arguments, ILambdaContext context)
        {
            var taskReport = new TaskOrchestrator().StartTask(
                ComputationallyIntensive.Task,
                TimeSpan.FromSeconds(arguments.LengthOfTestInSeconds),
                arguments.NoOfThreads);

            return(taskReport);
        }
示例#2
0
 public TaskController(
     IAuthenticationService owinWrapper,
     TaskOrchestrator taskOrchestrator,
     IMultiVariantTestingService multiVariantTestingService,
     ICookieStorageService <FlashMessageViewModel> flashMessage,
     ILog logger) : base(owinWrapper, multiVariantTestingService, flashMessage)
 {
     _orchestrator = taskOrchestrator;
     _logger       = logger;
 }
示例#3
0
 public void Arrange()
 {
     _mediator     = new Mock <IMediator>();
     _logger       = new Mock <ILog>();
     _orchestrator = new TaskOrchestrator(_mediator.Object, _logger.Object);
 }
示例#4
0
        public void Test_Orchestrator()
        {
            var x = new TaskOrchestrator();

            _ = x.Launch().Result;
        }