public void DeleteConfirmedHasValidateAntiForgeryTokenAttribute()
        {
            SkillController controller = new SkillController(null);
            var             attribute  = controller.GetAttributesOn(x => x.DeleteConfirmed(It.IsAny <SkillDeleteViewModel>())).OfType <ValidateAntiForgeryTokenAttribute>().SingleOrDefault();

            Assert.NotNull(attribute);
        }
        public void DeleteHasHttpGetAttribute()
        {
            SkillController controller = new SkillController(null);
            var             attribute  = controller.GetAttributesOn(x => x.Delete(It.IsAny <int>())).OfType <HttpGetAttribute>().SingleOrDefault();

            Assert.NotNull(attribute);
        }
        public void EditPostHasValidateAntiForgeryTokenttrbitue()
        {
            SkillController controller = new SkillController(null);
            var             attribute  = controller.GetAttributesOn(x => x.Edit(It.IsAny <SkillEditViewModel>())).OfType <ValidateAntiForgeryTokenAttribute>().SingleOrDefault();

            Assert.NotNull(attribute);
        }
        public void CreatePostHasHttpPostAttribute()
        {
            SkillController controller = new SkillController(null);
            var             attribute  = controller.GetAttributesOn(x => x.Create(It.IsAny <SkillEditViewModel>())).OfType <HttpPostAttribute>().SingleOrDefault();

            Assert.NotNull(attribute);
        }
        public void CreateGetHasHttpGetAttribute()
        {
            SkillController controller = new SkillController(null);
            var             attribute  = controller.GetAttributesOn(x => x.Create()).OfType <HttpGetAttribute>().SingleOrDefault();

            Assert.NotNull(attribute);
        }
 public void DeleteConfirmedHasActionNameAttributeWithCorrerctActionName()
 {
     SkillController controller = new SkillController(null);
     var attribute = controller.GetAttributesOn(x => x.DeleteConfirmed(It.IsAny<SkillDeleteViewModel>())).OfType<ActionNameAttribute>().SingleOrDefault();
     Assert.NotNull(attribute);
     Assert.Equal(attribute.Name, "Delete");
 }