Esempio n. 1
0
            public void GoodDetail_ReturnsNullToDate()
            {
                // arrange
                RecentlyViewedListDetail detail = MakeDetail();

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

                // assert
                results.ToDate
                .Should()
                .BeNull();
            }
Esempio n. 2
0
            public void GoodDetail_ReturnsNullProprietaryCustomers()
            {
                // arrange
                RecentlyViewedListDetail detail = MakeDetail();

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

                // assert
                results.ProprietaryCustomers
                .Should()
                .BeNull();
            }
Esempio n. 3
0
            public void GoodDetail_ReturnsExpectedCustomInveotryItemId()
            {
                // arrange
                RecentlyViewedListDetail detail = MakeDetail();
                int expected = 0;

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

                // assert
                results.CustomInventoryItemId
                .Should()
                .Be(expected);
            }
Esempio n. 4
0
            public void GoodDetail_ReturnsExpectedCreatedUtc()
            {
                // arrange
                RecentlyViewedListDetail 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);
            }
Esempio n. 5
0
            public void GoodDetail_ReturnsExpectedCatalogId()
            {
                // arrange
                RecentlyViewedListDetail detail = MakeDetail();
                string expected = "FUT";

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

                // assert
                results.CatalogId
                .Should()
                .Be(expected);
            }
Esempio n. 6
0
            public void GoodDetail_ReturnsExpectedActive()
            {
                // arrange
                RecentlyViewedListDetail detail = MakeDetail();
                bool expected = true;

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

                // assert
                results.Active
                .Should()
                .Be(expected);
            }
Esempio n. 7
0
            public void GoodDetail_ReturnsQuantityOfZero()
            {
                // arrange
                RecentlyViewedListDetail detail = MakeDetail();
                int expected = 0;

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

                // assert
                results.Quantity
                .Should()
                .Be(expected);
            }
Esempio n. 8
0
            public void GoodDetail_ReturnsIsDeleteAsFalse()
            {
                // arrange
                RecentlyViewedListDetail detail = MakeDetail();
                bool expected = false;

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

                // assert
                results.IsDelete
                .Should()
                .Be(expected);
            }
Esempio n. 9
0
            public void GoodDetail_ReturnsExpectedType()
            {
                // arrange
                RecentlyViewedListDetail detail = MakeDetail();
                ListType expected = ListType.RecentlyViewed;

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

                // assert
                results.Type
                .Should()
                .Be(expected);
            }
Esempio n. 10
0
            public void GoodDetail_ReturnsExpectedPosition()
            {
                // arrange
                RecentlyViewedListDetail detail = MakeDetail();
                int expected = 7;

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

                // assert
                results.Position
                .Should()
                .Be(expected);
            }
Esempio n. 11
0
            public void GoodDetail_ReturnsExpectedItemNumber()
            {
                // arrange
                RecentlyViewedListDetail detail = MakeDetail();
                string expected = "123456";

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

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