Beispiel #1
0
            public void GoodModel_ReturnsExpectedPar()
            {
                // arrange
                decimal       expected = 9.76m;
                int           headerId = 1;
                ListItemModel model    = MakeModel();

                // act
                CustomListDetail results = model.ToCustomListDetail(headerId);

                // assert
                results.Par
                .Should()
                .Be(expected);
            }
Beispiel #2
0
            public void GoodModel_ReturnsExpectedLineNumber()
            {
                // arrange
                int           expected = 23;
                int           headerId = 1;
                ListItemModel model    = MakeModel();

                // act
                CustomListDetail results = model.ToCustomListDetail(headerId);

                // assert
                results.LineNumber
                .Should()
                .Be(expected);
            }
Beispiel #3
0
            public void GoodModel_ReturnsExpectedEach()
            {
                // arrange
                bool          expected = true;
                int           headerId = 1;
                ListItemModel model    = MakeModel();

                // act
                CustomListDetail results = model.ToCustomListDetail(headerId);

                // assert
                results.Each
                .Should()
                .Be(expected);
            }
Beispiel #4
0
            public void GoodModel_ReturnsExpectedLabel()
            {
                // arrange
                string        expected = "Fake Label";
                int           headerId = 1;
                ListItemModel model    = MakeModel();

                // act
                CustomListDetail results = model.ToCustomListDetail(headerId);

                // assert
                results.Label
                .Should()
                .Be(expected);
            }
Beispiel #5
0
            public void GoodModel_ReturnsExpectedCustomInventoryItemId()
            {
                // arrange
                int           expected = 1900;
                int           headerId = 1;
                ListItemModel model    = MakeModel();

                // act
                CustomListDetail results = model.ToCustomListDetail(headerId);

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