Example #1
0
 private void AssertTagData(PCSTagOverview tagOverview, PCSTagDto tagDto)
 {
     Assert.AreEqual(tagOverview.TagNo, tagDto.TagNo);
     Assert.AreEqual(tagOverview.RegisterCode, tagDto.RegisterCode);
     Assert.AreEqual(tagOverview.TagFunctionCode, tagDto.TagFunctionCode);
     Assert.AreEqual(tagOverview.CommPkgNo, tagDto.CommPkgNo);
     Assert.AreEqual(tagOverview.Description, tagDto.Description);
     Assert.AreEqual(tagOverview.McPkgNo, tagDto.McPkgNo);
     Assert.AreEqual(tagOverview.PurchaseOrderTitle, tagDto.PurchaseOrderTitle);
     Assert.AreEqual(tagOverview.MccrResponsibleCodes, tagDto.MccrResponsibleCodes);
 }
Example #2
0
        public void Constructor_SetsProperties()
        {
            var dut = new PCSTagDto("TagNo", "Desc", "PoNo", "CommPkgNo", "McPkgNo", "TFC", "RC", "R1,R2", true);

            Assert.AreEqual("TagNo", dut.TagNo);
            Assert.AreEqual("Desc", dut.Description);
            Assert.AreEqual("PoNo", dut.PurchaseOrderTitle);
            Assert.AreEqual("CommPkgNo", dut.CommPkgNo);
            Assert.AreEqual("McPkgNo", dut.McPkgNo);
            Assert.AreEqual("McPkgNo", dut.McPkgNo);
            Assert.AreEqual("TFC", dut.TagFunctionCode);
            Assert.AreEqual("RC", dut.RegisterCode);
            Assert.AreEqual("R1,R2", dut.MccrResponsibleCodes);
            Assert.IsTrue(dut.IsPreserved);
        }