Zbiór zmian 930 dla trunk/eCard/eCardMVC/Platnosci.Tests/Web/Function.cs
- Data:
- 2009-12-07 11:39:40 (16 years ago)
- Lokalizacja:
- trunk/eCard/eCardMVC/Platnosci.Tests
- Pliki:
-
- 2 zmodyfikowane
-
. (zmodyfikowane) (1 prop)
-
Web/Function.cs (zmodyfikowane) (5 diffs)
Legenda:
- Bez zmian
- Dodane
- Usunięte
-
trunk/eCard/eCardMVC/Platnosci.Tests
-
Włąściwość:
svn:ignore set
to
bin
-
Włąściwość:
svn:ignore set
to
-
trunk/eCard/eCardMVC/Platnosci.Tests/Web/Function.cs
r896 r930 1 1 using System; 2 using System.Collections.Generic;3 using System.Linq;4 using System.Text;5 2 using Platnosci.Core.Linq; 6 3 using System.Web.Mvc; … … 11 8 public class Function 12 9 { 13 public vPlatnosciEcard createInvoice(int id, string nip, string fak_numer, decimal brutto, byte SystemKsiegowy)10 public vPlatnosciEcard CreateInvoice(int id, string nip, string fak_numer, decimal brutto, byte SystemKsiegowy) 14 11 { 15 16 vPlatnosciEcard platnosc = new vPlatnosciEcard(); 12 var platnosc = new vPlatnosciEcard(); 17 13 platnosc.ID_faktury = id; 18 14 platnosc.nip = nip; … … 23 19 return platnosc; 24 20 } 25 public PlatnosciEcard createNewPayment(int ordernumber, bool status, DateTime data, int id_faktury)21 public PlatnosciEcard CreateNewPayment(int ordernumber, bool status, DateTime data, int id_faktury) 26 22 { 27 PlatnosciEcardplatnosc = new PlatnosciEcard();23 var platnosc = new PlatnosciEcard(); 28 24 platnosc.ORDERNUMBER = ordernumber; 29 25 platnosc.Status = status; … … 33 29 return platnosc; 34 30 } 35 public PotwierdzeniaEcard createConfirm(string code, int ordernumber)31 public PotwierdzeniaEcard CreateConfirm(string code, int ordernumber) 36 32 { 37 PotwierdzeniaEcardpotwierdzenie = new PotwierdzeniaEcard();33 var potwierdzenie = new PotwierdzeniaEcard(); 38 34 potwierdzenie.CURRENTSTATE = code; 39 35 potwierdzenie.ORDERNUMBER = ordernumber; … … 41 37 return potwierdzenie; 42 38 } 43 public Payer createPayer(int id, string name, string surname) 39 40 public Payer CreatePayer(int id, string name, string surname) 44 41 { 45 Payer payer = new Payer(); 46 payer.Id_faktury = id; 47 payer.FirstName = name; 48 payer.LastName = surname; 42 var payer = new Payer {Id_faktury = id, FirstName = name, LastName = surname}; 49 43 50 44 return payer; 51 45 } 52 public ControllerContext createControllerContext(string UserIdentity) 46 47 public ControllerContext CreateControllerContext(string UserIdentity) 53 48 { 54 49
