- Data:
- 2009-12-23 11:26:06 (16 years ago)
- Pliki:
-
- 1 zmodyfikowane
-
trunk/eCard/eCardMVC/Platnosci.Tests/Web/MerchantControllerTests.cs (zmodyfikowane) (3 diffs)
Legenda:
- Bez zmian
- Dodane
- Usunięte
-
trunk/eCard/eCardMVC/Platnosci.Tests/Web/MerchantControllerTests.cs
r969 r970 1 using NUnit.Framework; 2 using Platnosci.Core.Linq; 3 using Platnosci.Core.Interface; 1 using adMoto.Payments.Core; 2 using adMoto.Payments.Core.Data; 3 using adMoto.Payments.Core.Interfaces; 4 using NUnit.Framework; 4 5 using Platnosci.Controllers; 5 6 using Platnosci.Models; … … 19 20 { 20 21 //Arrange 21 IRepository< vPlatnosciEcard> repVPayment = new Repository<vPlatnosciEcard>(new FakeDataContext());22 v PlatnosciEcardplatnosc = _function.CreateInvoice(123, "nip1", "", 0, 0);22 IRepository<Invoice> repVPayment = new Repository<Invoice>(new FakeDataContext()); 23 var platnosc = _function.CreateInvoice(123, "nip1", "", 0, 0); 23 24 repVPayment.Insert(platnosc); 24 25 25 Payer payer = _function.CreatePayer(123, "test", "test");26 var payer = _function.CreatePayer(123, "test", "test"); 26 27 27 28 var controller = new MerchantController(repVPayment, null, _translateManager); … … 42 43 { 43 44 //Arrange 44 IRepository< vPlatnosciEcard> repVPayment = new Repository<vPlatnosciEcard>(new FakeDataContext());45 v PlatnosciEcardplatnosc = _function.CreateInvoice(12, "nip1", "", 0, 0);45 IRepository<Invoice> repVPayment = new Repository<Invoice>(new FakeDataContext()); 46 var platnosc = _function.CreateInvoice(12, "nip1", "", 0, 0); 46 47 repVPayment.Insert(platnosc); 47 48 48 Payer payer = _function.CreatePayer(123, "test", "test");49 var payer = _function.CreatePayer(123, "test", "test"); 49 50 50 51 var controller = new MerchantController(repVPayment, null, _translateManager);
