Created
January 11, 2013 04:21
-
-
Save JakeGinnivan/4507927 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public abstract class nsw_police_files : IntegrationTestBase | |
| { | |
| protected abstract void RunTests(); | |
| [Fact] | |
| public void Automate() | |
| { | |
| RunTest(Setup, Jurisdictions.NSW); | |
| RunTests(); | |
| } | |
| } | |
| public class non_loan_or_buy_in_items_shoud_not_shown_on_reports : nsw_police_files | |
| { | |
| protected override void RunTests() | |
| { | |
| RunTest(police_report_shows_non_line_when_in_item_is_not_from_buy_or_loan, Jurisdiction.NSW); | |
| } | |
| private void police_report_shows_non_line_when_in_item_is_not_from_buy_or_loan() | |
| { | |
| //bring in item from a non loan/buy mechanism | |
| var itemBarcode = StoreItems.NewJewelleryItem(100m, 200m, OriginType.ExistingWholesale); | |
| var saleId = RetailSales.SellItemTo(Customers.CreateCustomerDto(), itemBarcode, 200m); | |
| //sell and refund the item | |
| RetailSales.RefundSale(saleId, 200m); | |
| //report should be empty | |
| CreateReportAndAssert(() => | |
| { | |
| ReportLineCountShouldBe(2); | |
| OutLineCountShouldBe(0); | |
| }); | |
| } | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment