using FWHandler;
using NUnit.Framework;
using NUnit.Framework.Interfaces;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace UITests
{
    [SetUpFixture]
    class GlobalFixture
    {
        [OneTimeSetUp]
        public void RunBeforeAnyTests()
        {
            string MachineLogin = System.Security.Principal.WindowsIdentity.GetCurrent().Name;
            string date = DateTime.Now.ToString("yyyyMMddHHmm");
            PathProvider.PathToErrorScreen = PathProvider.PathToErrorScreen + date + "\\";
            DirectoryInfo di1 = Directory.CreateDirectory(PathProvider.PathToErrorScreen);
            DirectoryInfo di2 = Directory.CreateDirectory(PathProvider.PathToErrorScreen + "Error_pictures\\");
            PathProvider.PathToErrorScreen = PathProvider.PathToErrorScreen + "Error_pictures\\";          
        }
    }
}





