Exemplo n.º 1
0
    protected void fvAppeal_ItemCommand(object sender, FormViewCommandEventArgs e)
    {
        //Checking the Command Name and Calling the Method of the BLL.
        if (e.CommandName == "ApproveAppealApplication")
        {
            //Getting the selected DataKey of the GridView into Variable.
            Guid AppealId = new Guid(fldAppealApplicationId.Value.ToString());
            //Calling the Method of the BLL.
            objAppeal.ApproveAppealApplication(AppealId, (Guid)ViewState["AlertId"]);
            ((IGRSS_Default)this.Master).ShowStatusMessage(Status_Messages.SaveSucess, Status_Messages.SaveSucessDescription, MessageType.Success);

            //((IGRSS_Default)this.Master).ShowStatusMessage("Application Approved", "The Application has been Approved", MessageType.Success);

            Response.Redirect("~/Default.aspx");
        }
        if (e.CommandName == "RejectAppealApplication")
        {
            //Getting the selected DataKey of the GridView.
            Guid licID = new Guid(fldAppealApplicationId.Value.ToString());
            //Calling the Method of the BLL.
            objAppeal.RejectAppealApplication(licID);
            WorkflowSupport.DeleteAlert(new Guid(ViewState["AlertId"].ToString()));
            ((IGRSS_Default)this.Master).ShowStatusMessage("Application Rejected", "The Application has been rejeced", MessageType.Success);
            Response.Redirect("~/Default.aspx");
        }
    }
Exemplo n.º 2
0
        public void ApproveAppealApplicationTest()
        {
            AppealApplication target = new AppealApplication();

            Guid AppealApplicationId = new Guid(); // TODO: Initialize to an appropriate value

            Guid AlertId = new Guid();             // TODO: Initialize to an appropriate value

            target.ApproveAppealApplication(AppealApplicationId, AlertId);

            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }