public void Create_invalidHtml_test() { var model = new Web.Models.Banners.NewBannerModel() { Id = 0, Html = "<di>asdsad</div>" }; bannerController.Validate(model); Assert.Throws <HttpResponseException>(() => bannerController.Post(model)); }
public void Create_invalidHtml_test() { var model = new Web.Models.Banners.NewBannerModel() { Id = 0, Html = "<di>asdsad</div>" }; bannerController.Validate(model); Assert.Throws <HttpResponseException>(() => bannerController.Post(model)); }