i have the following model public class Person { public int Id {get;set;} [Required()] public string Name {get;set;}
I have a BaseViewModel that my View Models all inherit from. public class MagazineViewModel : BaseOutputViewMode
I\'m using MVC 2.0 in an ASP.NET application using NHibernate. I have a working View, Controller and data access layer using NHibernate that is able to display and save an entity with a relationship
I have a Person class with a BornDate property in my model开发者_Go百科 defined as [DisplayName(\"Born Date\")]
I\'m developing a project using BDD/TDD techniques and I\'m trying my best to stay the course. A problem I just ran into is unit testing the DefaultModelBinder. I\'m using mspec to write my tests.
I\'m having some troubl开发者_如何学运维e unit testing the model returned by DefaultModelBinder. I want to feed in a fake form collection and check the model that it returns to make sure model propert
I have a struct which works much like the System.Nullable type: public struct SpecialProperty<T>
I have a simple Poco-Model using abstract classes, and it seems not to work with the Default ModelBinder of Asp.net MVC 2.
First; I know that I should not need to test the internals of MVC but I REALLY need a suite a tests around data flowing into our system.
When I migrated sample SportsStore app from Steve Sanderson\'s Pro ASP.NET MVC Framework (from asp.net 1开发者_如何转开发.0 to mvc 2 beta) using this app provided by eric lipton, everything work just