Пример #1
0
            public void GoodDetail_ReturnsNullToDate()
            {
                // arrange
                MandatoryItemsListDetail detail = MakeDetail();

                // act
                ListItemModel results = detail.ToWebModel();

                // assert
                results.ToDate
                .Should()
                .BeNull();
            }
Пример #2
0
            public void GoodDetail_ReturnsNullProprietaryCustomers()
            {
                // arrange
                MandatoryItemsListDetail detail = MakeDetail();

                // act
                ListItemModel results = detail.ToWebModel();

                // assert
                results.ProprietaryCustomers
                .Should()
                .BeNull();
            }
Пример #3
0
            public void GoodDetail_ReturnsExpectedCustomInveotryItemId()
            {
                // arrange
                MandatoryItemsListDetail detail = MakeDetail();
                int expected = 0;

                // act
                ListItemModel results = detail.ToWebModel();

                // assert
                results.CustomInventoryItemId
                .Should()
                .Be(expected);
            }
Пример #4
0
            public void GoodDetail_ReturnsExpectedCreatedUtc()
            {
                // arrange
                MandatoryItemsListDetail detail = MakeDetail();
                DateTime expected = new DateTime(2017, 7, 20, 10, 44, 0, DateTimeKind.Utc);

                // act
                ListItemModel results = detail.ToWebModel();

                // assert
                results.CreatedUtc
                .Should()
                .Be(expected);
            }
Пример #5
0
            public void GoodDetail_ReturnsExpectedCatalogId()
            {
                // arrange
                MandatoryItemsListDetail detail = MakeDetail();
                string expected = "FUT";

                // act
                ListItemModel results = detail.ToWebModel();

                // assert
                results.CatalogId
                .Should()
                .Be(expected);
            }
Пример #6
0
            public void GoodDetail_ReturnsExpectedActive()
            {
                // arrange
                MandatoryItemsListDetail detail = MakeDetail();
                bool expected = true;

                // act
                ListItemModel results = detail.ToWebModel();

                // assert
                results.Active
                .Should()
                .Be(expected);
            }
Пример #7
0
            public void GoodDetail_ReturnsQuantityOfZero()
            {
                // arrange
                MandatoryItemsListDetail detail = MakeDetail();
                int expected = 0;

                // act
                ListItemModel results = detail.ToWebModel();

                // assert
                results.Quantity
                .Should()
                .Be(expected);
            }
Пример #8
0
            public void GoodDetail_ReturnsIsDeleteAsFalse()
            {
                // arrange
                MandatoryItemsListDetail detail = MakeDetail();
                bool expected = false;

                // act
                ListItemModel results = detail.ToWebModel();

                // assert
                results.IsDelete
                .Should()
                .Be(expected);
            }
Пример #9
0
            public void GoodDetail_ReturnsExpectedType()
            {
                // arrange
                MandatoryItemsListDetail detail = MakeDetail();
                ListType expected = ListType.Mandatory;

                // act
                ListItemModel results = detail.ToWebModel();

                // assert
                results.Type
                .Should()
                .Be(expected);
            }
Пример #10
0
            public void GoodDetail_ReturnsExpectedPosition()
            {
                // arrange
                MandatoryItemsListDetail detail = MakeDetail();
                int expected = 7;

                // act
                ListItemModel results = detail.ToWebModel();

                // assert
                results.Position
                .Should()
                .Be(expected);
            }
Пример #11
0
            public void GoodDetail_ReturnsExpectedItemNumber()
            {
                // arrange
                MandatoryItemsListDetail detail = MakeDetail();
                string expected = "123456";

                // act
                ListItemModel results = detail.ToWebModel();

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