public void TagIDReturnsBadrequest()
        {
            Alarms tag          = null;
            var    controller   = new PlantConfigurationController();
            var    actionResult = controller.AddTagId(tag);

            Assert.IsInstanceOfType(actionResult, typeof(BadRequestErrorMessageResult));
        }
        public void AddTagIdReturnsCreated()
        {
            // Arrange
            Alarms test = null;
            var    tag  = new Alarms {
                TagID = 1, PlantID = 2, Value = 0.56
            };
            var controller = new PlantConfigurationController();
            //Act
            var actionResult  = controller.AddTagId(test);
            var createdresult = actionResult as CreatedNegotiatedContentResult <List <Alarms> >;

            //Assert

            var actionResult1 = controller.AddTagId(tag);
            // Assert.IsNotNull(createdresult);
            // Assert.AreEqual("api/PlantConfiguration/SendEmail", createdresult.Location.OriginalString);
        }