コード例 #1
0
        public void GetContentTests()
        {
            // Arrange
            ShelfBusiness shelfBusiness = new ShelfBusiness();
            // Act
            string result = shelfBusiness.GetContent("GT/CNTT000002");

            // Assert
            Assert.AreEqual("GT/CNTT000002", result);
        }
コード例 #2
0
        public void CheckErrorGetContentTests()
        {
            // Arrange
            ShelfBusiness shelfBusiness = new ShelfBusiness();
            // Act
            string result = shelfBusiness.GetContent("");

            // Assert
            Assert.AreEqual(0, result.Count());
        }
コード例 #3
0
        public void CheckErrorGenerateCompositeHoldingsTests()
        {
            // Arrange
            ShelfBusiness shelfBusiness = new ShelfBusiness();
            // Act
            string result = shelfBusiness.GenerateCompositeHoldings(9867176);

            // Assert
            Assert.AreEqual(0, result.Count());
        }
コード例 #4
0
        public void CheckRightGenerateCompositeHoldingsTests()
        {
            // Arrange
            ShelfBusiness shelfBusiness = new ShelfBusiness();
            // Act
            string result = shelfBusiness.GenerateCompositeHoldings(10);

            // Assert
            Assert.IsTrue(true);
        }
コード例 #5
0
        public void CheckTrueGenCopyNumberTests()
        {
            // Arrange
            ShelfBusiness shelfBusiness = new ShelfBusiness();
            // Act
            string result = shelfBusiness.GenCopyNumber(-11);

            // Assert
            Assert.IsTrue(true);
        }
コード例 #6
0
        public void GenerateCompositeHoldingsTests()
        {
            // Arrange
            ShelfBusiness shelfBusiness = new ShelfBusiness();
            // Act
            string result = shelfBusiness.GenerateCompositeHoldings(10);

            // Assert
            Assert.AreEqual("FSE-HL / TK/TTHL / TK/TTHL000083,1394,1605<br/>", result);
        }
コード例 #7
0
        public void IsExistHoldingTests()
        {
            // Arrange
            ShelfBusiness shelfBusiness = new ShelfBusiness();
            // Act
            bool result = shelfBusiness.IsExistHolding("", 15, -1);

            // Assert
            Assert.AreEqual(false, result);
        }
コード例 #8
0
        public void CheckRightIsExistHoldingTests()
        {
            // Arrange
            ShelfBusiness shelfBusiness = new ShelfBusiness();
            // Act
            bool result = shelfBusiness.IsExistHolding("", 15, -1);

            // Assert
            Assert.IsTrue(true);
        }
コード例 #9
0
        public void GenCopyNumberTests()
        {
            // Arrange
            ShelfBusiness shelfBusiness = new ShelfBusiness();
            // Act
            string result = shelfBusiness.GenCopyNumber(-11);

            // Assert
            Assert.AreEqual("CD/CDDN000022", result);
        }
コード例 #10
0
        public void GetHoldingStatusTests()
        {
            // Arrange
            ShelfBusiness shelfBusiness = new ShelfBusiness();
            // Act
            string result = shelfBusiness.GetHoldingStatus(true, true, true);

            // Assert
            Assert.AreEqual("<p style='color: #deaa0f'>Đang cho mượn<p>", result);
        }
コード例 #11
0
        public void CheckRightGetContentTests()
        {
            // Arrange
            ShelfBusiness shelfBusiness = new ShelfBusiness();
            // Act
            string result = shelfBusiness.GetContent("GT/CNTT000002");

            // Assert
            Assert.IsTrue(true);
        }
コード例 #12
0
        public void CheckErrorSearchItembyYearTests()
        {
            // Arrange
            ShelfBusiness shelfBusiness = new ShelfBusiness();
            // Act
            List <SP_GET_TITLES_Result> data = null;
            string result = shelfBusiness.SearchItem("", "", "", "", "", "3030", ref data);

            // Assert
            Assert.AreEqual(0, result.Count());
        }
コード例 #13
0
        public void SearchItemTests()
        {
            // Arrange
            ShelfBusiness shelfBusiness = new ShelfBusiness();
            // Act
            List <SP_GET_TITLES_Result> data = null;
            string result = shelfBusiness.SearchItem("", "GT/CNTT", "", "", "", "", ref data);

            // Assert
            Assert.AreEqual("", result);
        }