Index: trunk/eCard/eCardMVC/Platnosci.Tests/Web/PlatnosciControllerTests.cs
===================================================================
--- trunk/eCard/eCardMVC/Platnosci.Tests/Web/PlatnosciControllerTests.cs (revision 969)
+++ trunk/eCard/eCardMVC/Platnosci.Tests/Web/PlatnosciControllerTests.cs (revision 970)
@@ -1,12 +1,9 @@
 ﻿using System;
-using System.Linq;
 using System.Web.Mvc;
-
+using adMoto.Payments.Core;
+using adMoto.Payments.Core.Data;
+using adMoto.Payments.Core.Interfaces;
 using NUnit.Framework;
-using MvcContrib.TestHelper;
 using Platnosci.Controllers;
-
-using Platnosci.Core.Interface;
-using Platnosci.Core.Linq;
 using Platnosci.Models;
 
@@ -141,5 +138,5 @@
         {
             //Arrange
-            IRepository<vPlatnosciEcard> repVPayment = new Repository<vPlatnosciEcard>(new FakeDataContext());
+            IRepository<Invoice> repVPayment = new Repository<Invoice>(new FakeDataContext());
             var platnosc = _function.CreateInvoice(123, "nip1", "", 0, 0);
             repVPayment.Insert(platnosc);
@@ -162,6 +159,6 @@
         {
             //Arrange
-            IRepository<vPlatnosciEcard> repVPayment = new Repository<vPlatnosciEcard>(new FakeDataContext());
-            vPlatnosciEcard platnosc = _function.CreateInvoice(123, "nip2", "", 0, 0);
+            IRepository<Invoice> repVPayment = new Repository<Invoice>(new FakeDataContext());
+            var platnosc = _function.CreateInvoice(123, "nip2", "", 0, 0);
             repVPayment.Insert(platnosc);
 
@@ -185,5 +182,5 @@
             //Arrange
             //Tworzymy takie dane aby platnosc o danym id byla juz zaplacona 
-            var repVPayment = new Repository<vPlatnosciEcard>(new FakeDataContext());
+            var repVPayment = new Repository<Invoice>(new FakeDataContext());
             var invoice = _function.CreateInvoice(123, "nip1", "aaa", 0, 0);
             repVPayment.Insert(invoice);
@@ -212,6 +209,6 @@
         {
             //Arrange
-            IRepository<vPlatnosciEcard> repVPayment = new Repository<vPlatnosciEcard>(new FakeDataContext());
-            vPlatnosciEcard platnosc = _function.CreateInvoice(123, "nip1", "numer", 200, 0);
+            IRepository<Invoice> repVPayment = new Repository<Invoice>(new FakeDataContext());
+            var platnosc = _function.CreateInvoice(123, "nip1", "numer", 200, 0);
             repVPayment.Insert(platnosc);
 
@@ -240,6 +237,6 @@
         {
             //Arrange
-            IRepository<vPlatnosciEcard> repVPayment = new Repository<vPlatnosciEcard>(new FakeDataContext());
-            vPlatnosciEcard platnosc = _function.CreateInvoice(123, "nip1", "numer", 200, 0);
+            IRepository<Invoice> repVPayment = new Repository<Invoice>(new FakeDataContext());
+            var platnosc = _function.CreateInvoice(123, "nip1", "numer", 200, 0);
             repVPayment.Insert(platnosc);
 
@@ -261,6 +258,6 @@
         {
             //Arrange
-            IRepository<vPlatnosciEcard> repVPayment = new Repository<vPlatnosciEcard>(new FakeDataContext());
-            vPlatnosciEcard platnosc = _function.CreateInvoice(123, "nip1", "numer", 200, 0);
+            IRepository<Invoice> repVPayment = new Repository<Invoice>(new FakeDataContext());
+            var platnosc = _function.CreateInvoice(123, "nip1", "numer", 200, 0);
             repVPayment.Insert(platnosc);
 
@@ -282,12 +279,12 @@
         {
             //Arrange
-            IRepository<vPlatnosciEcard> repVPayment = new Repository<vPlatnosciEcard>(new FakeDataContext());
-            vPlatnosciEcard platnosc = _function.CreateInvoice(123, "nip1", "numer", 200, 0);
-            repVPayment.Insert(platnosc);
-
-            var controller = new PlatnoscController(repVPayment, null, null, _translateManager);
-            controller.ControllerContext = _function.CreateControllerContext("nip1");
-            string name = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
-            Payer payer = _function.CreatePayer(123, name, "test");
+            IRepository<Invoice> repVPayment = new Repository<Invoice>(new FakeDataContext());
+            var platnosc = _function.CreateInvoice(123, "nip1", "numer", 200, 0);
+            repVPayment.Insert(platnosc);
+
+            var controller = new PlatnoscController(repVPayment, null, null, _translateManager);
+            controller.ControllerContext = _function.CreateControllerContext("nip1");
+            var name = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
+            var payer = _function.CreatePayer(123, name, "test");
 
             //Act
@@ -303,12 +300,12 @@
         {
             //Arrange
-            IRepository<vPlatnosciEcard> repVPayment = new Repository<vPlatnosciEcard>(new FakeDataContext());
-            vPlatnosciEcard platnosc = _function.CreateInvoice(123, "nip1", "numer", 200, 0);
-            repVPayment.Insert(platnosc);
-
-            var controller = new PlatnoscController(repVPayment, null, null, _translateManager);
-            controller.ControllerContext = _function.CreateControllerContext("nip1");
-            string surname = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
-            Payer payer = _function.CreatePayer(123, "test", surname);
+            IRepository<Invoice> repVPayment = new Repository<Invoice>(new FakeDataContext());
+            var platnosc = _function.CreateInvoice(123, "nip1", "numer", 200, 0);
+            repVPayment.Insert(platnosc);
+
+            var controller = new PlatnoscController(repVPayment, null, null, _translateManager);
+            controller.ControllerContext = _function.CreateControllerContext("nip1");
+            var surname = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
+            var payer = _function.CreatePayer(123, "test", surname);
 
             //Act
@@ -324,6 +321,6 @@
         {
             //Arrange
-            IRepository<vPlatnosciEcard> repVPayment = new Repository<vPlatnosciEcard>(new FakeDataContext());
-            vPlatnosciEcard platnosc = _function.CreateInvoice(123, "nip1", "numer", 200, 0);
+            IRepository<Invoice> repVPayment = new Repository<Invoice>(new FakeDataContext());
+            var platnosc = _function.CreateInvoice(123, "nip1", "numer", 200, 0);
             repVPayment.Insert(platnosc);
 
