public void GoodModel_ReturnsExpecteQuantity() { // arrange int expected = 17; int headerId = 1; ListItemModel model = MakeModel(); // act MandatoryItemsListDetail results = model.ToMandatoryItemsListDetail(headerId); // assert results.Quantity .Should() .Be(expected); }
public void GoodModel_ReturnsExpectedEach() { // arrange bool expected = true; int headerId = 1; ListItemModel model = MakeModel(); // act MandatoryItemsListDetail results = model.ToMandatoryItemsListDetail(headerId); // assert results.Each .Should() .Be(expected); }
public void GoodModel_ReturnsExpectedItemNumber() { // arrange string expected = "123456"; int headerId = 1; ListItemModel model = MakeModel(); // act MandatoryItemsListDetail results = model.ToMandatoryItemsListDetail(headerId); // assert results.ItemNumber .Should() .Be(expected); }
public void GoodModel_ReturnsExpectedCatalogId() { // arrange string expected = "FUT"; int headerId = 1; ListItemModel model = MakeModel(); // act MandatoryItemsListDetail results = model.ToMandatoryItemsListDetail(headerId); // assert results.CatalogId .Should() .Be(expected); }