Пример #1
0
            public void GoodModelWithoutHeaderId_ReturnsDefaultHeaderId()
            {
                // arrange
                int           expected = 0;
                int           headerId = 1;
                ListItemModel model    = MakeModel();

                // act
                RecentlyOrderedListDetail results = model.ToRecentlyOrderedDetailList();

                // assert
                results.HeaderId
                .Should()
                .Be(expected);
            }
Пример #2
0
            public void GoodModel_ReturnsExpectedEach()
            {
                // arrange
                bool          expected = true;
                int           headerId = 1;
                ListItemModel model    = MakeModel();

                // act
                RecentlyOrderedListDetail results = model.ToRecentlyOrderedDetailList();

                // assert
                results.Each
                .Should()
                .Be(expected);
            }
Пример #3
0
            public void GoodModel_ReturnsExpectedLineNumber()
            {
                // arrange
                int           expected = 23;
                int           headerId = 1;
                ListItemModel model    = MakeModel();

                // act
                RecentlyOrderedListDetail results = model.ToRecentlyOrderedDetailList();

                // assert
                results.LineNumber
                .Should()
                .Be(expected);
            }
Пример #4
0
            public void GoodModel_ReturnsExpectedCatalogId()
            {
                // arrange
                string        expected = "FUT";
                int           headerId = 1;
                ListItemModel model    = MakeModel();

                // act
                RecentlyOrderedListDetail results = model.ToRecentlyOrderedDetailList();

                // assert
                results.CatalogId
                .Should()
                .Be(expected);
            }