- Data:
- 2009-12-28 15:17:15 (16 years ago)
- Pliki:
-
- 1 zmodyfikowane
Legenda:
- Bez zmian
- Dodane
- Usunięte
-
trunk/eCard/eCardMVC/adMoto.Payments.Test/Utils/TestDataHelperTests.cs
r982 r984 7 7 { 8 8 [TestFixture] 9 public class TestDataHelperTests 9 public class TestDataHelperTests 10 10 { 11 11 private readonly TestDataHelper _testDataHelper = new TestDataHelper(); … … 15 15 public void TestInsertMethodForPayment() 16 16 { 17 var fake = new FakeDataContext(); 18 var vPlatnosciEcardRepository = new Repository<Invoice>(fake); 17 var repVPayment = new Repository<Invoice>(new FakeDataContext()); 19 18 20 var platnosc= _testDataHelper.CreateInvoice(123, "nip", "", 0, 0);21 vPlatnosciEcardRepository.Insert(platnosc);19 var invoice1 = _testDataHelper.CreateInvoice(123, "nip", "", 0, 0); 20 repVPayment.Insert(invoice1); 22 21 23 var pl = vPlatnosciEcardRepository.FindOne(123);24 Assert.That( pl.nip, Is.EqualTo("nip"));22 var invoice2 = repVPayment.FindOne(123); 23 Assert.That(invoice2.nip, Is.EqualTo("nip")); 25 24 } 26 25 }
