Skip to content

Instantly share code, notes, and snippets.

@JakeGinnivan
Created January 11, 2013 04:21
Show Gist options
  • Select an option

  • Save JakeGinnivan/4507927 to your computer and use it in GitHub Desktop.

Select an option

Save JakeGinnivan/4507927 to your computer and use it in GitHub Desktop.
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