|
Wersja 982, 0.8 KB
(wprowadzona przez marek, 16 years temu)
|
|
re #215 - poprawki w testach + testy na status
|
| Rev | Line | |
|---|
| [970] | 1 | using adMoto.Payments.Core;
|
|---|
| 2 | using adMoto.Payments.Core.Data;
|
|---|
| [982] | 3 | using adMoto.Payments.Test.Fakes;
|
|---|
| [970] | 4 | using NUnit.Framework;
|
|---|
| [882] | 5 |
|
|---|
| [982] | 6 | namespace adMoto.Payments.Test.Utils
|
|---|
| [882] | 7 | {
|
|---|
| 8 | [TestFixture]
|
|---|
| [982] | 9 | public class TestDataHelperTests
|
|---|
| [882] | 10 | {
|
|---|
| [982] | 11 | private readonly TestDataHelper _testDataHelper = new TestDataHelper();
|
|---|
| [882] | 12 |
|
|---|
| 13 | [Test]
|
|---|
| 14 | [Category("Unit")]
|
|---|
| 15 | public void TestInsertMethodForPayment()
|
|---|
| 16 | {
|
|---|
| [930] | 17 | var fake = new FakeDataContext();
|
|---|
| [970] | 18 | var vPlatnosciEcardRepository = new Repository<Invoice>(fake);
|
|---|
| [882] | 19 |
|
|---|
| [982] | 20 | var platnosc = _testDataHelper.CreateInvoice(123, "nip", "", 0, 0);
|
|---|
| [930] | 21 | vPlatnosciEcardRepository.Insert(platnosc);
|
|---|
| [882] | 22 |
|
|---|
| [930] | 23 | var pl = vPlatnosciEcardRepository.FindOne(123);
|
|---|
| [896] | 24 | Assert.That(pl.nip, Is.EqualTo("nip"));
|
|---|
| [970] | 25 | }
|
|---|
| [882] | 26 | }
|
|---|
| [970] | 27 | } |
|---|
Notatka: Zobacz
TracBrowser
aby uzyskać więcej informacji.