Index: trunk/eCard/eCardMVC/adMoto.Payments.Test/UI/AuthenticationTests.cs
===================================================================
--- trunk/eCard/eCardMVC/adMoto.Payments.Test/UI/AuthenticationTests.cs (revision 986)
+++ trunk/eCard/eCardMVC/adMoto.Payments.Test/UI/AuthenticationTests.cs (revision 991)
@@ -1,23 +1,32 @@
 ﻿using NUnit.Framework;
 using WatiN.Core;
+using adMoto.Payments.Core.Data;   
+using adMoto.Payments.Core;
+using adMoto.Payments.Core.Interfaces;
 
-namespace adMoto.Payments.Test.UI
+namespace adMoto.Payments.Test.UI 
 {
     [TestFixture]
-    public class AuthenticationTests
+    public class AuthenticationTests : BaseTests
     {
         private readonly UIHelper _uiHelper = new UIHelper();
         private static string adres = UIHelper.LoginSite;
         
+        [SetUp]
+        public void SetUp()
+        {
+            System.Diagnostics.Debug.WriteLine("nowy test");
+            _uiHelper.SearchAndClean();
+            ie.GoTo(adres);           
+        }
+
         [Test]
         [Category("UI")]
         public void Can_Not_Login_When_Using_InValid_Login_Information()
         {
-            var ie = new IE(adres);
             ie.TextField(Find.ByName("numerFaktury")).TypeText("");
             ie.TextField(Find.ByName("nip")).TypeText("");
             ie.Button(Find.ById("loguj")).Click();
             Assert.IsTrue(ie.ContainsText("Logowanie nie powiodło się"));
-            _uiHelper.CloseWebBrowser(ie);
         }
         
@@ -26,12 +35,11 @@
         public void Can_Login_When_Using_Correct_Login_Information()
         {
-            var uiData = _uiHelper.CreateAndAddTestRecordToRepository(0);
-
-            var ie = new IE(adres);
+            var uiData = _uiHelper.CreateAndAddTestRecordToRepository(10);
+            
             ie.TextField(Find.ByName("numerFaktury")).TypeText(uiData.Test_numer_faktury);
             ie.TextField(Find.ByName("nip")).TypeText(uiData.Test_nip);
             ie.Button(Find.ById("loguj")).Click();
             Assert.IsTrue(ie.ContainsText("Szczegóły zlecenia"));
-            _uiHelper.CloseWebBrowser(ie);
+            
             _uiHelper.DeleteTestRecordsFromRepository(uiData);
         }
