Ejemplo n.º 1
0
        public void GetDockTest()
        {
            AdministrationBE abe = new AdministrationBE();

            Contract.dto.Dock newItem = UnitTest.TestHelpers.randomDock();
            newItem = abe.CreateDock(newItem);
            Contract.dto.Dock item = abe.GetDock(newItem.DockId);
            Assert.AreEqual(newItem.DockId, item.DockId);
        }
Ejemplo n.º 2
0
        public void CreateDockTest()
        {
            AdministrationBE abe = new AdministrationBE();

            Contract.dto.Dock item = UnitTest.TestHelpers.randomDock();
            item.DockId = 0;
            item        = abe.CreateDock(item);
            Assert.AreNotEqual(0, item.DockId);
        }
Ejemplo n.º 3
0
        public void DeleteDockTest()
        {
            AdministrationBE abe = new AdministrationBE();

            Contract.dto.Dock item = UnitTest.TestHelpers.randomDock();
            item.DockId = 0;
            item        = abe.CreateDock(item);
            Assert.IsTrue(abe.DeleteDock(item));
        }
Ejemplo n.º 4
0
        public void UpdateDockTest()
        {
            AdministrationBE abe = new AdministrationBE();

            Contract.dto.Dock item = UnitTest.TestHelpers.randomDock();
            item.DockId   = 0;
            item          = abe.CreateDock(item);
            item.DockName = "I HATE CRUD UNIT TESTING";
            item          = abe.UpdateDock(item);
            Assert.AreEqual("I HATE CRUD UNIT TESTING", item.DockName);
        }