public void GetContentTests() { // Arrange ShelfBusiness shelfBusiness = new ShelfBusiness(); // Act string result = shelfBusiness.GetContent("GT/CNTT000002"); // Assert Assert.AreEqual("GT/CNTT000002", result); }
public void CheckErrorGetContentTests() { // Arrange ShelfBusiness shelfBusiness = new ShelfBusiness(); // Act string result = shelfBusiness.GetContent(""); // Assert Assert.AreEqual(0, result.Count()); }
public void CheckErrorGenerateCompositeHoldingsTests() { // Arrange ShelfBusiness shelfBusiness = new ShelfBusiness(); // Act string result = shelfBusiness.GenerateCompositeHoldings(9867176); // Assert Assert.AreEqual(0, result.Count()); }
public void CheckRightGenerateCompositeHoldingsTests() { // Arrange ShelfBusiness shelfBusiness = new ShelfBusiness(); // Act string result = shelfBusiness.GenerateCompositeHoldings(10); // Assert Assert.IsTrue(true); }
public void CheckTrueGenCopyNumberTests() { // Arrange ShelfBusiness shelfBusiness = new ShelfBusiness(); // Act string result = shelfBusiness.GenCopyNumber(-11); // Assert Assert.IsTrue(true); }
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); }
public void IsExistHoldingTests() { // Arrange ShelfBusiness shelfBusiness = new ShelfBusiness(); // Act bool result = shelfBusiness.IsExistHolding("", 15, -1); // Assert Assert.AreEqual(false, result); }
public void CheckRightIsExistHoldingTests() { // Arrange ShelfBusiness shelfBusiness = new ShelfBusiness(); // Act bool result = shelfBusiness.IsExistHolding("", 15, -1); // Assert Assert.IsTrue(true); }
public void GenCopyNumberTests() { // Arrange ShelfBusiness shelfBusiness = new ShelfBusiness(); // Act string result = shelfBusiness.GenCopyNumber(-11); // Assert Assert.AreEqual("CD/CDDN000022", result); }
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); }
public void CheckRightGetContentTests() { // Arrange ShelfBusiness shelfBusiness = new ShelfBusiness(); // Act string result = shelfBusiness.GetContent("GT/CNTT000002"); // Assert Assert.IsTrue(true); }
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()); }
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); }