Esempio n. 1
0
        public async Task <FileResult> PrepareRun(Configuration configuration)
        {
            var path = main.SelectedDrive.DriveInfo.RootDirectory.FullName;

            main.Messages = $"Preparing test data for {path}";
            var result = progressService.RunCreationProcess(configuration, dataManager);

            if (result.Count == 0)
            {
                main.Messages = "Data creation skipped";
            }
            else
            {
                main.Messages = $"Created {result.Count} files with size: {Misc.BytesToString(result.Size)}";
            }
            var delay = 5;

            main.BusyMessage = $"Test will start in {delay} seconds. Please wait...";
            await Task.Delay(delay * 1000);

            main.BusyMessage = null;
            return(result);
        }