Пример #1
0
            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);
            }
Пример #2
0
            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);
            }
Пример #3
0
            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);
            }
Пример #4
0
            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);
            }