Exemple #1
0
        public void TestMethodWZE6()
        {
            WarehouseZoneEditor edt = new WarehouseZoneEditor();

            edt.AssignTextBoxes(new string[] { "-1", "TESTCODE", "TESTNAME", "5", "5", "5", "" });
            edt.PerformSave();
            NUnit.Framework.Assert.Pass();
        }
Exemple #2
0
        public void TestMethodWZE7()
        {
            WarehouseZoneEditor edt = new WarehouseZoneEditor();

            edt.AssignTextBoxes(new string[] { "-1", "TestMethodWZE7", "TestMethodWZE7", "TEST", "5", "5", "5", "125" });
            edt.PerformSave();

            string id = Sql.GetString($"SELECT dbo.ValidateFZone('TestMethodWZE7','TestMethodWZE7')");

            NUnit.Framework.Assert.That(int.Parse(id) > 0, "Failed warehouse zone insert");
        }