Index: trunk/eCard/eCardMVC/Platnosci/Models/PaymentsUtils.cs
===================================================================
--- trunk/eCard/eCardMVC/Platnosci/Models/FunkcjePlatnosci.cs (revision 970)
+++ trunk/eCard/eCardMVC/Platnosci/Models/PaymentsUtils.cs (revision 971)
@@ -10,7 +10,7 @@
 
 
-namespace Platnosci.Models
+namespace adMoto.Payments.Web.Models
 {
-    public class FunkcjePlatnosci
+    public class PaymentsUtils
     {
         public const string EUR = "978";
@@ -21,8 +21,8 @@
         public const string KOD_POLSKA = "616";         //kod kraju Akceptanta - Polska
         public const string KODOWANIE = "ISO-8859-2";
-        private IRepository<PlatnosciEcard> _repPayment;
+        private readonly IRepository<PlatnosciEcard> _repPayment;
         private readonly ITranslateManager _translateManager;
 
-        public FunkcjePlatnosci()
+        public PaymentsUtils()
         {
             _repPayment = new Repository<PlatnosciEcard>(new DataContext());
@@ -30,10 +30,10 @@
         }
 
-        public FunkcjePlatnosci(IRepository<PlatnosciEcard> repPayment)
+        public PaymentsUtils(IRepository<PlatnosciEcard> repPayment)
         {
             _repPayment = repPayment;
             _translateManager = new Translation();    
         }
-        public FunkcjePlatnosci(IRepository<PlatnosciEcard> repPayment, ITranslateManager translate)
+        public PaymentsUtils(IRepository<PlatnosciEcard> repPayment, ITranslateManager translate)
         {
             _repPayment = repPayment;
@@ -58,11 +58,7 @@
         public Waluta SetAmount(Invoice platnosc)
         {
-            var waluta = new Waluta();
-            waluta.Currency = GetCurrency(platnosc.waluta_miano);
+            var waluta = new Waluta {Currency = GetCurrency(platnosc.waluta_miano)};
 
-            if (waluta.Currency == PLN)
-                waluta.Amount = Convert.ToInt32(platnosc.Brutto * 100);
-            else
-                waluta.Amount = Convert.ToInt32(platnosc.waluta_brutto * 100);
+            waluta.Amount = waluta.Currency == PLN ? Convert.ToInt32(platnosc.Brutto * 100) : Convert.ToInt32(platnosc.waluta_brutto * 100);
             
             return waluta;
@@ -174,5 +170,5 @@
         }
 
-        public ErrorViewData IsError(Invoice platnosc, String UserName)
+        public ErrorViewData IsError(Invoice platnosc, String userName)
         {
             var errortxt = "";
@@ -180,5 +176,5 @@
             if (platnosc == null)
                 errortxt = _translateManager.Translate("tlumaczenia", "brakdanych");
-            else if (!UserIdentity(platnosc, UserName))
+            else if (!UserIdentity(platnosc, userName))
                 errortxt = _translateManager.Translate("tlumaczenia", "weryfikacja");
 
