Index: trunk/eCard/eCardMVC/Platnosci.Tests/Web/TestMethods.cs
===================================================================
--- trunk/eCard/eCardMVC/Platnosci.Tests/Web/TestMethods.cs (revision 882)
+++ trunk/eCard/eCardMVC/Platnosci.Tests/Web/TestMethods.cs (revision 896)
@@ -12,20 +12,6 @@
     class TestMethods
     {
-        private string testNip1 = "12345";
-        private int testIdFaktury = 1000;
-
         private Function _f = new Function();
 
-        [Test]
-        [Category("Unit")]
-        public void TestFindInvoiceByNumber()
-        {
-            FakeDataContext fake = new FakeDataContext();
-            IRepository<vPlatnosciEcard> _rep = new Repository<vPlatnosciEcard>(fake);
-
-            vPlatnosciEcard platnosc = new vPlatnosciEcard();
-            platnosc = _rep.FindInvoiceById(1).SingleOrDefault();
-            Assert.That(platnosc.Faktura_Numer, Is.EqualTo("1"));
-        }
         [Test]
         [Category("Unit")]
@@ -33,11 +19,13 @@
         {
             FakeDataContext fake = new FakeDataContext();
-            IRepository<vPlatnosciEcard> _rep = new Repository<vPlatnosciEcard>(fake);
+            var _rep = new Repository<vPlatnosciEcard>(fake);
 
-            vPlatnosciEcard platnosc = _f.createPayment(testIdFaktury, testNip1, "", 0, 0);
+            vPlatnosciEcard platnosc = _f.createInvoice(123, "nip", "", 0, 0);
             _rep.Insert(platnosc);
 
-            vPlatnosciEcard pl = _rep.FindInvoiceById(testIdFaktury).SingleOrDefault();
-            Assert.That(pl.nip, Is.EqualTo(testNip1));
+            System.Diagnostics.Debug.WriteLine("rep.Count: " + _rep.Count());            
+            vPlatnosciEcard pl = _rep.FindOne(123);
+            System.Diagnostics.Debug.WriteLine("Wartosc nip ma byc 'nip'. Jest " + pl.nip);
+            Assert.That(pl.nip, Is.EqualTo("nip"));
         }
     }
