Browse by Tags

Related Posts

  • Mocking Membership

    I'm writing a custom Profile provider, but I still intend to use the default AspNetSqlMembershipProvider as my Membership provider. My GetAllProfiles() method in my Profile provider looks like this: 1 public override ProfileInfoCollection GetAllProfiles(ProfileAuthenticationOption authenticationOption...
    Posted to Security (Forum) by rob_abernethy on 06-08-2009, 12:00 AM
    Filed under: TDD, membership, Mock
  • Re: Should I Test my POCO's?

    Since the original post is filed under TDD I'll assume you're asking from a TDD perspective, rather than just a unit testing perspective. TDD is more than just swapping the code -> test order of operations; the purpose behind TDD is that you should be driving the design of your application...
    Posted to ASP.NET MVC (Forum) by TroyGoode on 05-26-2009, 12:00 AM
    Filed under: TDD
  • Should I Test my POCO's?

    Hello there, I got a concern in here. Should I test it? if so, how? Lets take a simple example public class Product { public string Name { get ; set ; } public Brand Brand { get ; set ; } public Category Category { get ; set ; } public decimal Price { get ; set ; } } Should I Test this to make sure my...
    Posted to ASP.NET MVC (Forum) by rgoytacaz on 05-25-2009, 12:00 AM
    Filed under: POCO, TDD, Test
  • Re: Unit Testing Controllers as a whole

    Yes, technically, I'm crossing boundries by testing the action and action invoker at the same time even though I'm mocking httpcontext and viewengine. It seems the most direct way to run a controller and have its events fire without testing the view/models. Here's a specific example. All...
    Posted to ASP.NET MVC (Forum) by claco on 04-21-2009, 12:00 AM
    Filed under: TDD, controllers, integration, unit, action, invoker
  • Unit Testing Controllers as a whole

    There are quite a few examples out in the wild for unit test controller actions. It's relatively straight forward. What I need to test now are the actions' complete lifecycle, including having the OnActionExecuting, OnActionExecuted cycle run to test filter, ViewData scrubbing and other things...
    Posted to ASP.NET MVC (Forum) by claco on 04-20-2009, 12:00 AM
    Filed under: TDD, controllers, events, unit
  • Newbie TDD questions

    Forgive the newbie questions. I'm new to MVC, and relatively new to TDD. I'm using MVC primarily because it is supposed to simplify TDD, but I'm having trouble with it. 1) If I accept the default setups for the methods attributes that is created when I do a "create unit test", they...
    Posted to ASP.NET MVC (Forum) by daveh551 on 04-07-2009, 12:00 AM
    Filed under: TDD, Test Context
  • How to represent a web service in a test framework?

    I want to run tests, as I work on my classes, to make sure they serialize and deserialize properly. I thought I had it, using something like this: using (MemoryStream stream = new MemoryStream()) { SoapFormatter soapSerializer = new SoapFormatter(); soapSerializer.Serialize(stream, objectInQuestion);...
    Posted to XML Web Services (Forum) by ssg31415926 on 03-27-2009, 12:00 AM
    Filed under: Serializable, tdd, WEb Service
  • Re: Unit tests VS 2008

    Hi rickj1, I have only used nunit in my code so I can't comment on the other testing frameworks. Their are really two ways you can use a testing framework, once is to do it by hand and the other is to install a Visual studio plugin to help you. I would recommend you install testdriven.net which is...
    Posted to ASP.NET MVC (Forum) by kstenson on 03-11-2009, 12:00 AM
    Filed under: nunit, TDD, testdriven.net, C#
  • Re: Models?? unit testing examples needed for TDD (agile, eXtreme Programming), also for non TDD unit tests ...

    Hi Gerry, In my experience I tend to go a step further and simply write the test first. In doing so, I am not only beginning to flesh out what the structure of the model with be, but also how I will ultimately use this model in my code. This provides what I think is another of the main benefits of TDD...
    Posted to ASP.NET MVC (Forum) by kstenson on 03-10-2009, 12:00 AM
    Filed under: model, MVC, TDD, C#
  • Models?? unit testing examples needed for TDD (agile, eXtreme Programming), also for non TDD unit tests ...

    Since the Model is the ultimate commander of the View , and since the Controller is the messenger servant of the Model , it seems appropriate in the TDD paradigm that one should begin by writing her/his first failing code for the Model . example: something like public sometype wellnamedmethod () { throw...
    Posted to ASP.NET MVC (Forum) by gerrylowry on 03-10-2009, 12:00 AM
    Filed under: models, TDD, "agile programming", "eXtreme Programming", examples, samples
Page 1 of 4 (36 items) 1 2 3 4 Next >