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

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

                // assert
                results.Label
                .Should()
                .BeNull();
            }
Esempio n. 2
0
            public void GoodDetail_ReturnsExpectedCustomInveotryItemId()
            {
                // arrange
                NotesListDetail detail   = MakeDetail();
                int             expected = 0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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