Beispiel #1
0
        public void InsertPartTest()
        {
            DbPart target = new DbPart(); // TODO: Initialize to an appropriate value
            Part   i_Part = null;         // TODO: Initialize to an appropriate value

            target.InsertPart(i_Part);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }
Beispiel #2
0
        public void GetPartsTest()
        {
            DbPart      target   = new DbPart(); // TODO: Initialize to an appropriate value
            List <Part> expected = null;         // TODO: Initialize to an appropriate value
            List <Part> actual;

            actual = target.GetParts();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
Beispiel #3
0
        public void SavePart(Part i_Part)
        {
            var dbPart = new DbPart();
            int ret    = dbPart.UpdatePart(i_Part);

            if (ret == 0)
            {
                dbPart.InsertPart(i_Part);
            }
        }
Beispiel #4
0
        public void UpdatePartTest()
        {
            DbPart target   = new DbPart(); // TODO: Initialize to an appropriate value
            Part   i_Part   = null;         // TODO: Initialize to an appropriate value
            int    expected = 0;            // TODO: Initialize to an appropriate value
            int    actual;

            actual = target.UpdatePart(i_Part);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
Beispiel #5
0
        public void DbPartConstructorTest()
        {
            DbPart target = new DbPart();

            Assert.Inconclusive("TODO: Implement code to verify target");
        }
Beispiel #6
0
        public List <Part> GetParts(string i_CadNumber)
        {
            var part = new DbPart();

            return(part.GetPartsByCadNumber(i_CadNumber));
        }
Beispiel #7
0
        public List <Part> GetParts()
        {
            var part = new DbPart();

            return(part.GetParts());
        }