/// <summary>
 /// Creates a new instance of the
 /// <see cref="Spring.Objects.Factory.Support.RootWebObjectDefinition"/> class
 /// for an .aspx page, providing property values.
 /// </summary>
 /// <param name="pageName">
 /// Name of the .aspx page to instantiate.
 /// </param>
 /// <param name="properties">
 /// The <see cref="Spring.Objects.MutablePropertyValues"/> to be applied to
 /// a new instance of the object.
 /// </param>
 public RootWebObjectDefinition(
     string pageName,
     MutablePropertyValues properties)
     : base(WebObjectUtils.GetPageType(pageName), null, properties)
 {
     _pageName = WebUtils.CombineVirtualPaths(VirtualEnvironment.CurrentExecutionFilePath, pageName);
 }
Exemplo n.º 2
0
 public void GetPageTypeWithWhitespacedPageName()
 {
     WebObjectUtils.GetPageType("   ");
 }
Exemplo n.º 3
0
 public void GetPageTypeWithEmptyStringPageName()
 {
     WebObjectUtils.GetPageType(string.Empty);
 }
Exemplo n.º 4
0
 public void GetPageTypeWithNullPageName()
 {
     WebObjectUtils.GetPageType(null);
 }
 public void GetPageTypeWithWhitespacedPageName()
 {
     Assert.Throws <ArgumentNullException>(() => WebObjectUtils.GetPageType("   "));
 }
 public void GetPageTypeWithEmptyStringPageName()
 {
     Assert.Throws <ArgumentNullException>(() => WebObjectUtils.GetPageType(string.Empty));
 }
 public void GetPageTypeWithNullPageName()
 {
     Assert.Throws <ArgumentNullException>(() => WebObjectUtils.GetPageType(null));
 }