Asp.net mvc

Last post 06-09-2008 1:00 PM by matytr21. 3 replies.

Sort Posts:

  • Asp.net mvc

    11-19-2007, 5:05 AM
    • Loading...
    • Dancoe
    • Joined on 08-22-2007, 10:26 AM
    • Posts 16

     

    for all those people wanting to have feel of the new mvc framework that scottgu shown us at alt.net, here is my url where you can download my own version of the mvc framework with all the basic functionality available for you to try it out, ( I tried to mirror the way asp.net mvc framework looks like in code so it is as close as the real thing). let me know what u think. http://undocnet.blogspot.com/2007/11/unofficial-aspnet-mvc.html
    Filed under:
  • Re: Asp.net mvc

    03-27-2008, 1:49 AM
    • Loading...
    • deep_sinha4
    • Joined on 05-28-2007, 6:56 AM
    • Posts 1

    Can you tell me n-tier architectures support MVC ???

    if no  ,then why

    and

    if yes ,the  how

    please Help me .

    
    

     my e-mail ID is deepkumarsinha@gmail.com or deep@oliveglobal.com

    please you have any information about that plz send me Smile

     

  • Re: Asp.net mvc

    06-09-2008, 12:56 PM
    • Loading...
    • matytr21
    • Joined on 06-09-2008, 12:48 PM
    • Posts 2

    Hi,

    I have a problem with this code. I don't know how to compare two ActionResult. I`m testing, I know that this program runs, but i don`t know hot to test it.

    Here is the code:

     

            public void CalculadoraControllerConstructorTest()
            {
                CalculadoraController target = new CalculadoraController();
                //Assert.Inconclusive("TODO: Implement code to verify target");
            }

            public void CalculaTest()
            {
                CalculadoraController target = new CalculadoraController();
                string tipo = "Sumar";
                int numero = 2;
                int numero1 = 2;
               
                ActionResult actual = target.Calcula(tipo, numero, numero1);

                int expected = 4;

                Assert.Equals(expected, (actual));
            }

    In this case i`m comparing and int with an ActionResult.  

     

    Filed under:
  • Re: Asp.net mvc

    06-09-2008, 1:00 PM
    • Loading...
    • matytr21
    • Joined on 06-09-2008, 12:48 PM
    • Posts 2

    Here is the other part of this code, the method Calcula.

     public ActionResult Calcula(string tipo, int numero, int numero1)
            {
                int NumeroFinal = 0;
                if (tipo == "Sumar")
                {
                    NumeroFinal = numero + numero1;
                }
                else if (tipo == "Restar")
                {
                    NumeroFinal = numero - numero1;
                }
                else if (tipo == "Multiplicar")
                {
                    NumeroFinal = numero * numero1;
                }
                else if (tipo == "Dividir")
                {
                    NumeroFinal = numero / numero1;
                }


                ViewData["Calculo"] = NumeroFinal;

                return View("results");

            }


               
        }
        Thanks.
     

    Filed under:
Page 1 of 1 (4 items)
Microsoft Communities
Page view counter