public void BadRequestWithIdentityErrors_MustHave_ApiExplorerSettingsAttribute()
        {
            var baseApiController = new Mock <BaseApiController>().Object;
            var hasApiExplorerSettingsAttribute = Helper.ActionHasAttribute <BaseApiController, IHttpActionResult, ApiExplorerSettingsAttribute>(
                (x) => baseApiController.BadRequestWithIdentityErrors(null));

            Assert.IsTrue(hasApiExplorerSettingsAttribute);
        }
        public void ResetPasswordAction_MustHave_AllowAnonymousAttribute()
        {
            var controller = new AccountController(new Mock <IAccountService>().Object);
            var hasAllowAnonymousAttribute = Helper.ActionHasAttribute <AccountController, IHttpActionResult, AllowAnonymousAttribute>(
                (x) => controller.ResetPassword(null));

            Assert.IsTrue(hasAllowAnonymousAttribute);
        }