public void PostTagDetailsReturnsBadrequest()
        {
            Tags tag          = null;
            var  controller   = new PlantConfigurationController();
            var  actionResult = controller.PostTagDetails(tag);

            Assert.IsInstanceOfType(actionResult, typeof(BadRequestErrorMessageResult));
        }
        public void PostTagDetailsReturnsCreated()
        {
            // Arrange
            var jsoonString = getJson();
            var tag         = new Tags {
                AssetName = "Test", AssetTypeName = "Department", EnergyType = "Electricity", IsEnabled = "Y", IsExponential = "Y", TagName = "test1,test2", Target = 234.23, UOM = "kwh"
            };
            var controller = new PlantConfigurationController();
            //Act
            var actionResult  = controller.PostTagDetails(tag);
            var createdresult = actionResult as CreatedNegotiatedContentResult <List <Tag> >;

            //Assert

            Assert.IsNotNull(createdresult);
            Assert.AreEqual("api/PlantConfiguration/MapTags", createdresult.Location.OriginalString);
        }