public void GoodModel_ReturnsExpectedQuantity() { // arrange decimal expected = 9.76m; int headerId = 1; ListItemModel model = MakeModel(); // act InventoryValuationListDetail results = model.ToInventoryValuationListDetail(headerId); // assert results.Quantity .Should() .Be(expected); }
public void GoodModel_ReturnsExpectedLineNumber() { // arrange int expected = 23; int headerId = 1; ListItemModel model = MakeModel(); // act InventoryValuationListDetail results = model.ToInventoryValuationListDetail(headerId); // assert results.LineNumber .Should() .Be(expected); }
public void GoodModel_ReturnsExpectedEach() { // arrange bool expected = true; int headerId = 1; ListItemModel model = MakeModel(); // act InventoryValuationListDetail results = model.ToInventoryValuationListDetail(headerId); // assert results.Each .Should() .Be(expected); }
public void GoodModel_ReturnsExpectedLabel() { // arrange string expected = "Test Label"; int headerId = 1; ListItemModel model = MakeModel(); // act InventoryValuationListDetail results = model.ToInventoryValuationListDetail(headerId); // assert results.Label .Should() .Be(expected); }
public void GoodModel_ReturnsExpectedCustomInventoryItemId() { // arrange int expected = 1900; int headerId = 1; ListItemModel model = MakeModel(); // act InventoryValuationListDetail results = model.ToInventoryValuationListDetail(headerId); // assert results.CustomInventoryItemId .Should() .Be(expected); }