Beispiel #1
0
        public void Get()
        {
            // Arrange
            ComGroupController controller = new ComGroupController();
            // Act

            ComGroup result = controller.Get("COM0000001");

            // Assert
            Assert.IsNotNull(result);
            //Assert.AreEqual("Home Page", result.ViewBag.Title);
        }
Beispiel #2
0
        public void Post()
        {
            // Arrange
            ComGroupController controller = new ComGroupController();
            ComGroup           model      = controller.Get("COM0000001");

            model.GroupDesc = "SAI Company is it comp";

            // Act
            ComGroup result = controller.Put("COM0000001", model);

            // Assert
            Assert.IsNotNull(result);
            //Assert.AreEqual("Home Page", result.ViewBag.Title);
        }