/// <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); }
public TaskController( IAuthenticationService owinWrapper, TaskOrchestrator taskOrchestrator, IMultiVariantTestingService multiVariantTestingService, ICookieStorageService <FlashMessageViewModel> flashMessage, ILog logger) : base(owinWrapper, multiVariantTestingService, flashMessage) { _orchestrator = taskOrchestrator; _logger = logger; }
public void Arrange() { _mediator = new Mock <IMediator>(); _logger = new Mock <ILog>(); _orchestrator = new TaskOrchestrator(_mediator.Object, _logger.Object); }
public void Test_Orchestrator() { var x = new TaskOrchestrator(); _ = x.Launch().Result; }