Beispiel #1
0
        public void InsertStocTest()
        {
            var target = new Stoc
            {
                IdPozitieFacturaIntrare = 28,
                IdProdus  = 2,
                Cantitate = 30.123123m
            };

            if (target.Save().Status == StatusEnum.Errors)
            {
                Assert.Fail();
            }
        }
Beispiel #2
0
        public void UpdateStocTest()
        {
            var target = new Stoc
            {
                IdPozitieFacturaIntrare = 1,
                IdProdus  = 1,
                Cantitate = 30,
                ID        = 1
            };

            if (target.Save().Status == StatusEnum.Errors)
            {
                Assert.Fail();
            }
        }