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