示例#1
0
            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);
            }
示例#2
0
            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);
            }
示例#3
0
            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);
            }
示例#4
0
            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);
            }
示例#5
0
            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);
            }