Zbiór zmian 930 dla trunk/eCard/eCardMVC/Platnosci.Tests/Web/TestMethods.cs
- Data:
- 2009-12-07 11:39:40 (16 years ago)
- Lokalizacja:
- trunk/eCard/eCardMVC/Platnosci.Tests
- Pliki:
-
- 2 zmodyfikowane
-
. (zmodyfikowane) (1 prop)
-
Web/TestMethods.cs (zmodyfikowane) (3 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/TestMethods.cs
r896 r930 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using NUnit.Framework; 1 using NUnit.Framework; 6 2 using Platnosci.Core.Linq; 7 using Platnosci.Core.Interface;8 3 9 4 namespace Platnosci.Tests.Web … … 12 7 class TestMethods 13 8 { 14 private Function _f= new Function();9 private readonly Function _function = new Function(); 15 10 16 11 [Test] … … 18 13 public void TestInsertMethodForPayment() 19 14 { 20 FakeDataContextfake = new FakeDataContext();21 var _rep= new Repository<vPlatnosciEcard>(fake);15 var fake = new FakeDataContext(); 16 var vPlatnosciEcardRepository = new Repository<vPlatnosciEcard>(fake); 22 17 23 v PlatnosciEcard platnosc = _f.createInvoice(123, "nip", "", 0, 0);24 _rep.Insert(platnosc);18 var platnosc = _function.CreateInvoice(123, "nip", "", 0, 0); 19 vPlatnosciEcardRepository.Insert(platnosc); 25 20 26 System.Diagnostics.Debug.WriteLine("rep.Count: " + _rep.Count());27 v PlatnosciEcard pl = _rep.FindOne(123);21 System.Diagnostics.Debug.WriteLine("rep.Count: " + vPlatnosciEcardRepository.Count()); 22 var pl = vPlatnosciEcardRepository.FindOne(123); 28 23 System.Diagnostics.Debug.WriteLine("Wartosc nip ma byc 'nip'. Jest " + pl.nip); 29 24 Assert.That(pl.nip, Is.EqualTo("nip"));
