Zbiór zmian 877 dla trunk/eCard/eCardMVC/Platnosci.Tests/Web/FakeDataContext.cs
- Data:
- 2009-11-16 16:06:37 (16 years ago)
- Pliki:
-
- 1 zmodyfikowane
-
trunk/eCard/eCardMVC/Platnosci.Tests/Web/FakeDataContext.cs (zmodyfikowane) (3 diffs)
Legenda:
- Bez zmian
- Dodane
- Usunięte
-
trunk/eCard/eCardMVC/Platnosci.Tests/Web/FakeDataContext.cs
r872 r877 48 48 public FakeDataContext(int i) 49 49 { 50 listaPlatnosci.Add(DodajPlatnosc(128, "numerfaktury", "nip")); 51 listaPl.Add(createNewPayment(158, true, DateTime.Now, 128)); 52 listaPotwierdzenia.Add(DodajPotwierdzenie("000", 158)); 50 if (i == 1) 51 { 52 listaPlatnosci.Add(DodajPlatnosc(1000, "abcd", "12345")); 53 listaPl.Add(createNewPayment(9999, true, DateTime.Now, 1000)); 54 listaPotwierdzenia.Add(DodajPotwierdzenie("000", 9999)); 55 } 56 else if (i == 2) 57 { 58 listaPl.Add(createNewPayment(9999, true, DateTime.Now, 1000)); 59 } 53 60 } 54 61 public IQueryable<T> GetTable<T>() where T : class … … 87 94 public IQueryable<vPlatnosciEcard> FindInvoiceByNipNumber(string nip, string numer) 88 95 { 96 List<object> lp = lista; 97 for (int i = 0; i < lp.Count(); i++) 98 { 99 if (lp[i].GetType() == typeof(vPlatnosciEcard)) 100 { 101 listaPlatnosci.Add((vPlatnosciEcard)lp[i]); 102 } 103 } 104 lista.Clear(); 105 89 106 var query = from l in listaPlatnosci 90 107 where l.nip == nip && l.Faktura_Numer == numer … … 105 122 return listazaplaconych; 106 123 } 124 public IQueryable<PlatnosciEcard> FindPaymentByOrdernumber(int ordernumber) 125 { 126 var query = from l in listaPl 127 where l.ORDERNUMBER == ordernumber 128 select l; 129 130 return query.AsQueryable(); 131 } 107 132 public void SubmitChanges() 108 133 {
