public void TearDown()
        {
            Console.WriteLine("TearDown");

            AllureReport.GetInstance().CaseFinished(TestContext.CurrentContext.Test.FullName,
                                                    TestContext.CurrentContext.Result.Outcome.Status, null);
        }
        public void SetUp()
        {
            AllureReport.GetInstance().CaseStarted(TestContext.CurrentContext.Test.FullName,
                                                   TestContext.CurrentContext.Test.Name, "");

            lykkePayApi = new LykkePayApi();

            TestContext.WriteLine("SetUp");
        }
 public void SetUp()
 {
     AllureReport.GetInstance().CaseStarted(TestContext.CurrentContext.Test.FullName,
                                            TestContext.CurrentContext.Test.Name, "");
     lykkeApi     = new LykkeApi();
     apiSchemes   = new ApiSchemes();
     schemesError = new List <string>();
     TestContext.WriteLine("SetUp");
 }
        public static void Step(string name, Action action)
        {
            Exception ex = null;

            try
            {
                AllureReport.GetInstance().StepStarted(TestContext.CurrentContext.Test.FullName, name);
                TestLog.WriteLine($"Step: {name}");
                action();
            }catch (Exception e) {
                ex = e;
            }
            finally
            {
                AllureReport.GetInstance().StepFinished(TestContext.CurrentContext.Test.FullName,
                                                        TestContext.CurrentContext.Result.Outcome.Status, ex);
            }
        }
 public void OneTimeTearDown()
 {
     AllureReport.GetInstance().RunFinished();
 }
 public void OneTimeSetUp()
 {
     AllureReport.GetInstance().RunStarted();
 }