public static ISiteNavHelper GetSiteNavHelper(SiteNavMode navMode) { if (navMode == SiteNavMode.RealNav) { return new SiteNavHelperReal(); } else { return new SiteNavHelperMock(); } }
public SiteNavHelper(SiteNavMode navMode) { if (navMode == SiteNavMode.RealNav) { _navHelper = new SiteNavHelperReal(); } else { _navHelper = new SiteNavHelperMock(); } }
public static ISiteNavHelper GetSiteNavHelper(SiteNavMode navMode) { if (navMode == SiteNavMode.RealNav) { return(new SiteNavHelperReal()); } else { return(new SiteNavHelperMock()); } }