├── Click To Build.bat ├── CommiterBuild.bat ├── src ├── MVCContrib.UnitTests │ ├── IncludeHandling │ │ ├── exists.txt │ │ └── configs │ │ │ ├── DefaultsAreCorrect.xml │ │ │ ├── WhenPathMissingAFormatPlaceHolder_WillThrow_pathValidation1.xml │ │ │ ├── WhenPathMissingAFormatPlaceHolder_WillThrow_pathValidation2.xml │ │ │ └── CanChangeAllTheDefaultsEvenThoughIShouldntWriteATestWithABigSurfaceAreaLikeThisNaughtyPete.xml │ ├── UI │ │ ├── PagerTests.cs │ │ ├── Grid │ │ │ └── Person.cs │ │ ├── Html │ │ │ └── Person.cs │ │ └── InputBuilder │ │ │ └── HtmlExtensionsTester.cs │ ├── IoC │ │ ├── IDependency.cs │ │ ├── SimpleDependency.cs │ │ ├── INestedDependency.cs │ │ └── NestedDependency.cs │ ├── FluentHtml │ │ ├── Fakes │ │ │ ├── FakeEnum.cs │ │ │ ├── FakeChildModel.cs │ │ │ └── FakeViewDataContainer.cs │ │ ├── ModelViewPageTests.cs │ │ ├── ModelMasterViewPageTests.cs │ │ ├── ModelViewUserControlPageTests.cs │ │ ├── Views │ │ │ └── TestableViewPage.cs │ │ ├── FileUploadTests.cs │ │ ├── SubmitButtonTests.cs │ │ ├── CustomBehaviors │ │ │ └── CustomRequiredHtmlBehavior.cs │ │ ├── ButtonTests.cs │ │ └── ResetButtonTests.cs │ ├── ConventionController │ │ ├── CustomActionResult.cs │ │ ├── TestFilter.cs │ │ └── TestBinder.cs │ ├── TestHelper │ │ ├── TestHelperControllerWithArgs.cs │ │ └── TestHelperWithArgsController.cs │ ├── Binders │ │ └── DerivedTypeBinderAwareAttributeTests.cs │ └── ActionResults │ │ └── RedirectToRouteResultTester.cs ├── Samples │ ├── MvcContrib.Samples.PortableArea │ │ ├── PortableAreaSpike │ │ │ ├── Sample.csproj │ │ │ ├── Global.asax │ │ │ ├── Services │ │ │ │ ├── User.cs │ │ │ │ ├── IUserRepository.cs │ │ │ │ ├── IAuthenticationService.cs │ │ │ │ ├── UserRepository.cs │ │ │ │ ├── MockAuthenticationService.cs │ │ │ │ └── PortableAreaHandlers │ │ │ │ │ └── LogAllMessagesObserver.cs │ │ │ ├── Controllers │ │ │ │ └── HomeController.cs │ │ │ ├── Default.aspx.cs │ │ │ ├── Views │ │ │ │ ├── Shared │ │ │ │ │ └── Error.aspx │ │ │ │ └── Home │ │ │ │ │ ├── About.aspx │ │ │ │ │ └── Index.aspx │ │ │ └── Default.aspx │ │ └── LoginPortableArea │ │ │ ├── LoginPortableArea.csproj │ │ │ └── Login │ │ │ ├── Models │ │ │ ├── LoginInput.cs │ │ │ └── ForgotPasswordInput.cs │ │ │ ├── Messages │ │ │ ├── ForgotPasswordResult.cs │ │ │ ├── LoginResult.cs │ │ │ ├── ForgotPasswordInputMessage.cs │ │ │ ├── LoginInputMessage.cs │ │ │ └── RegistrationMessage.cs │ │ │ ├── Views │ │ │ ├── Rss │ │ │ │ └── Index.aspx │ │ │ ├── Shared │ │ │ │ └── UserWidget.ascx │ │ │ └── Login │ │ │ │ ├── ForgotPasswordSent.aspx │ │ │ │ ├── Index.aspx │ │ │ │ └── ForgotPassword.aspx │ │ │ └── Controllers │ │ │ └── RssController.cs │ ├── MvcContrib.Samples.IncludeHandling │ │ └── MvcContrib.Samples.IncludeHandling │ │ │ ├── favicon.ico │ │ │ ├── Content │ │ │ └── js │ │ │ │ └── common.js │ │ │ ├── Global.asax │ │ │ ├── Properties │ │ │ └── AssemblyInfo.cs │ │ │ ├── Default.aspx │ │ │ └── Views │ │ │ ├── Shared │ │ │ ├── LogOnUserControl.ascx │ │ │ └── Error.aspx │ │ │ ├── Home │ │ │ ├── About.aspx │ │ │ ├── CssOne.aspx │ │ │ ├── JsMooTools.aspx │ │ │ ├── JsJquery.aspx │ │ │ └── JsPrototype.aspx │ │ │ └── Account │ │ │ └── ChangePasswordSuccess.aspx │ ├── MvcContrib.Samples.IoC │ │ ├── Global.asax │ │ ├── Views │ │ │ └── Home │ │ │ │ ├── About.aspx │ │ │ │ └── Index.aspx │ │ ├── Default.aspx │ │ └── Controllers │ │ │ └── HomeController.cs │ ├── IocControllerFactory │ │ └── Website │ │ │ ├── Global.asax │ │ │ ├── Default.aspx │ │ │ └── Views │ │ │ └── Home │ │ │ ├── About.aspx │ │ │ └── Index.aspx │ ├── MvcContrib.Samples.UI │ │ ├── Global.asax │ │ ├── Content │ │ │ └── blarg.gif │ │ ├── Models │ │ │ ├── Color.cs │ │ │ ├── Parent.cs │ │ │ ├── PersonViewModel.cs │ │ │ ├── Company.cs │ │ │ ├── Role.cs │ │ │ ├── PersonEditModel.cs │ │ │ ├── PeopleGridModel.cs │ │ │ ├── PeopleFactory.cs │ │ │ └── Person.cs │ │ ├── Default.aspx │ │ ├── MvcContrib.Samples.UI.gpState │ │ ├── Views │ │ │ ├── Grid │ │ │ │ ├── ViewPersonPartial.ascx │ │ │ │ ├── UsingGridModel.aspx │ │ │ │ └── Show.aspx │ │ │ ├── FluentHtml │ │ │ │ ├── EditParent.ascx │ │ │ │ └── ViewParent.ascx │ │ │ ├── Home │ │ │ │ ├── SecurePage1.aspx │ │ │ │ ├── SecurePage2.aspx │ │ │ │ ├── About.aspx │ │ │ │ └── Index.aspx │ │ │ ├── Shared │ │ │ │ ├── LogOnUserControl.ascx │ │ │ │ └── Error.aspx │ │ │ ├── SampleFluentHtmlViewPage.cs │ │ │ └── Account │ │ │ │ └── ChangePasswordSuccess.aspx │ │ └── Default.aspx.cs │ ├── MvcContrib.TestHelper │ │ └── Website │ │ │ ├── Global.asax │ │ │ ├── Default.aspx │ │ │ └── Views │ │ │ └── Stars │ │ │ └── ListWithLinks.aspx │ ├── MvcContrib.Samples.IoC.Spring │ │ ├── Global.asax │ │ ├── Views │ │ │ ├── Shared │ │ │ │ └── Site.Master.cs │ │ │ └── Home │ │ │ │ ├── About.aspx │ │ │ │ └── Index.aspx │ │ ├── Default.aspx │ │ ├── Controllers │ │ │ └── HomeController.cs │ │ └── objects.xml │ ├── MvcContrib.Samples.ConventionController │ │ ├── Global.asax │ │ ├── Default.aspx │ │ ├── Models │ │ │ ├── Shipment.cs │ │ │ ├── Dimension.cs │ │ │ └── Address.cs │ │ ├── Views │ │ │ ├── Shared │ │ │ │ └── Rescues │ │ │ │ │ ├── DivideByZeroException.aspx │ │ │ │ │ └── Error.aspx │ │ │ └── Shipment │ │ │ │ └── Track.aspx │ │ ├── Default.aspx.cs │ │ └── Global.asax.cs │ ├── MvcContrib.Samples.SubControllers │ │ ├── Website │ │ │ ├── Global.asax │ │ │ ├── Views │ │ │ │ ├── Right │ │ │ │ │ └── Right.ascx │ │ │ │ ├── Home │ │ │ │ │ ├── About.aspx.cs │ │ │ │ │ ├── Index.aspx.cs │ │ │ │ │ ├── About.aspx │ │ │ │ │ ├── About.aspx.designer.cs │ │ │ │ │ └── Index.aspx.designer.cs │ │ │ │ ├── Account │ │ │ │ │ ├── Login.aspx.cs │ │ │ │ │ ├── Register.aspx.cs │ │ │ │ │ ├── ChangePassword.aspx.cs │ │ │ │ │ ├── ChangePasswordSuccess.aspx.cs │ │ │ │ │ ├── ChangePasswordSuccess.aspx │ │ │ │ │ ├── Login.aspx.designer.cs │ │ │ │ │ ├── Register.aspx.designer.cs │ │ │ │ │ ├── ChangePassword.aspx.designer.cs │ │ │ │ │ └── ChangePasswordSuccess.aspx.designer.cs │ │ │ │ ├── FormSubmit │ │ │ │ │ ├── Posted.ascx │ │ │ │ │ └── FormSubmit.ascx │ │ │ │ ├── Left │ │ │ │ │ └── Left.ascx │ │ │ │ ├── Shared │ │ │ │ │ ├── Error.aspx.cs │ │ │ │ │ ├── Site.Master.cs │ │ │ │ │ ├── Error.aspx │ │ │ │ │ └── Error.aspx.designer.cs │ │ │ │ ├── FirstLevel │ │ │ │ │ └── FirstLevel.ascx │ │ │ │ ├── SecondLevel │ │ │ │ │ └── SecondLevel.ascx │ │ │ │ └── Web.config │ │ │ ├── Default.aspx │ │ │ ├── Controllers │ │ │ │ ├── SubControllers │ │ │ │ │ ├── RightController.cs │ │ │ │ │ ├── FirstLevelSubController.cs │ │ │ │ │ ├── SecondLevelSubController.cs │ │ │ │ │ ├── LeftController.cs │ │ │ │ │ └── FormSubmitController.cs │ │ │ │ └── HomeController.cs │ │ │ └── Default.aspx.cs │ │ └── SubControllers.4.0.resharper │ ├── MvcContrib.Samples.InputBuilders │ │ ├── Global.asax │ │ ├── Models │ │ │ ├── NumberOfTypeEnum.cs │ │ │ └── SampleDisplay.cs │ │ ├── Content │ │ │ └── smoothness │ │ │ │ └── images │ │ │ │ ├── ui-icons_222222_256x240.png │ │ │ │ ├── ui-icons_2e83ff_256x240.png │ │ │ │ ├── ui-icons_454545_256x240.png │ │ │ │ ├── ui-icons_888888_256x240.png │ │ │ │ ├── ui-icons_cd0a0a_256x240.png │ │ │ │ ├── ui-bg_flat_0_aaaaaa_40x100.png │ │ │ │ ├── ui-bg_flat_75_ffffff_40x100.png │ │ │ │ ├── ui-bg_glass_55_fbf9ee_1x400.png │ │ │ │ ├── ui-bg_glass_65_ffffff_1x400.png │ │ │ │ ├── ui-bg_glass_75_dadada_1x400.png │ │ │ │ ├── ui-bg_glass_75_e6e6e6_1x400.png │ │ │ │ ├── ui-bg_glass_95_fef1ec_1x400.png │ │ │ │ └── ui-bg_highlight-soft_75_cccccc_1x100.png │ │ ├── Default.aspx │ │ └── Views │ │ │ ├── Shared │ │ │ ├── YesNoBoolean.aspx │ │ │ ├── String.aspx │ │ │ └── LogOnUserControl.ascx │ │ │ ├── InputBuilders │ │ │ └── YesNoBoolean.aspx │ │ │ └── Home │ │ │ └── About.aspx │ ├── MvcContrib.Samples.UnityControllerFactory │ │ ├── Global.asax │ │ ├── Default.aspx │ │ ├── Models │ │ │ └── Service.cs │ │ ├── Controllers │ │ │ └── HomeController.cs │ │ └── Views │ │ │ └── Home │ │ │ └── Index.aspx │ └── MvcContrib.Samples.WindsorControllerFactory │ │ ├── Global.asax │ │ ├── Default.aspx │ │ ├── Models │ │ └── Service.cs │ │ ├── Controllers │ │ └── HomeController.cs │ │ └── Views │ │ └── Home │ │ └── Index.aspx ├── MVCContrib │ ├── AssemblyInfo.cs │ ├── UI │ │ ├── InputBuilder │ │ │ ├── Attributes │ │ │ │ ├── NoAddAttribute.cs │ │ │ │ ├── NoDeleteAttribute.cs │ │ │ │ ├── CanDeleteAllAttribute.cs │ │ │ │ ├── DisplayOrderAttribute.cs │ │ │ │ ├── PartialViewAttribute.cs │ │ │ │ ├── LabelAttribute.cs │ │ │ │ └── ExampleAttribute.cs │ │ │ ├── InputSpecification │ │ │ │ └── IInputSpecification.cs │ │ │ ├── Conventions │ │ │ │ ├── PropertyName │ │ │ │ │ ├── IPropertyViewModelNameConvention.cs │ │ │ │ │ └── DefaultNameConvention.cs │ │ │ │ ├── Type │ │ │ │ │ └── ITypeViewModelFactory.cs │ │ │ │ └── Property │ │ │ │ │ ├── DateTimePropertyConvention.cs │ │ │ │ │ ├── IPropertyViewModelFactory.cs │ │ │ │ │ └── GuidPropertyConvention.cs │ │ │ ├── Views │ │ │ │ ├── InputBuilders │ │ │ │ │ ├── ArrayAddButton.aspx │ │ │ │ │ ├── HiddenField.Master │ │ │ │ │ ├── ArrayRemoveButton.aspx │ │ │ │ │ ├── DisplayParagraph.aspx │ │ │ │ │ ├── Form.aspx │ │ │ │ │ ├── MultilineText.aspx │ │ │ │ │ ├── Guid.aspx │ │ │ │ │ ├── String.aspx │ │ │ │ │ ├── DisplayInline.aspx │ │ │ │ │ ├── Submit.aspx │ │ │ │ │ ├── Boolean.aspx │ │ │ │ │ ├── Int32.aspx │ │ │ │ │ ├── DisplayLabel.aspx │ │ │ │ │ ├── ReadOnly.aspx │ │ │ │ │ ├── Enum.aspx │ │ │ │ │ ├── Row.Master │ │ │ │ │ └── DateTime.aspx │ │ │ │ ├── DisplayPartial.cs │ │ │ │ ├── PropertyViewModel.cs │ │ │ │ ├── Partial.cs │ │ │ │ └── TypeViewModelExtensions.asax.cs │ │ │ ├── ViewEngine │ │ │ │ └── RenderInputBuilderException.cs │ │ │ ├── DefaultTypeConventionsFactory.cs │ │ │ ├── DefaultPropertyConventionsFactory.cs │ │ │ └── Helpers │ │ │ │ └── ExpressionHelper.cs │ │ ├── ASPXViewEngine │ │ │ ├── AutoTypeViewPage.cs │ │ │ └── AutoTypeViewUserControl.cs │ │ ├── Grid │ │ │ ├── IGridModel.cs │ │ │ ├── Sortable │ │ │ │ ├── ISortableDataSource.cs │ │ │ │ └── ISortableGridRenderer.cs │ │ │ ├── RenderingContext.cs │ │ │ └── GridSections.cs │ │ └── MenuBuilder │ │ │ ├── MenuTitle.cs │ │ │ └── MenuHelpText.cs │ ├── SimplyRestful │ │ ├── RestfulPostAction.cs │ │ ├── RestfulGetAction.cs │ │ ├── IRestfulActionResolver.cs │ │ └── RestfulAction.cs │ ├── MimeTypes.cs │ ├── IHttpContextProvider.cs │ ├── Properties │ │ └── Settings.settings │ ├── HttpHeaders.cs │ ├── Services │ │ └── IEmailTemplateService.cs │ ├── PortableAreas │ │ ├── IApplicationBus.cs │ │ ├── IMessageHandlerFactory.cs │ │ └── IEventMessage.cs │ ├── Interfaces │ │ └── IDependencyResolver.cs │ ├── Routing │ │ ├── DebugRoute.cs │ │ └── DebugRouteHandler.cs │ ├── UrlHelperExtensions.cs │ └── HttpContextProvider.cs ├── CommonAssemblyInfo.cs ├── MvcContrib.FluentHtml │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── Behaviors │ │ ├── IBehaviorMarker.cs │ │ ├── ISupportsModelState.cs │ │ ├── ISupportsMaxLength.cs │ │ ├── IMemberBehavior.cs │ │ ├── IModelStateHandler.cs │ │ ├── IBehaviorsContainer.cs │ │ ├── ISupportsAutoLabeling.cs │ │ ├── GenericTypeSpec.cs │ │ ├── AutoLabelSettings.cs │ │ └── IBehavior.cs │ ├── Html │ │ ├── HtmlEventAttribute.cs │ │ ├── HtmlTag.cs │ │ └── HtmlInputType.cs │ ├── Expressions │ │ └── ExpressionNameVisitorResult.cs │ ├── IViewModelContainer.cs │ └── Elements │ │ ├── IMemberElement.cs │ │ ├── RadioButton.cs │ │ ├── RadioSet.cs │ │ ├── CheckBoxList.cs │ │ ├── ResetButtonBase.cs │ │ └── SubmitButtonBase.cs ├── MvcContrib.TestHelper │ └── MvcContrib.TestHelper │ │ ├── ObjectExtensions.cs │ │ ├── Ui │ │ ├── IInputTester.cs │ │ ├── IMultipleInputTesterFactory.cs │ │ ├── IInputTesterFactory.cs │ │ ├── RowFilter.cs │ │ ├── Helper │ │ │ └── EnumerableExtensions.cs │ │ ├── TextInputTesterFactory.cs │ │ ├── InputTesterBase.cs │ │ └── InputTesterFactory.cs │ │ ├── ActionResultAssertionException.cs │ │ └── FluentController │ │ └── ModelStateHelper.cs ├── MvcContrib.ViewEngines.NVelocity │ └── NVelocityConfiguration.cs ├── MvcContrib.IncludeHandling │ ├── IIncludeReader.cs │ ├── IKeyGenerator.cs │ ├── Configuration │ │ ├── ICssMinifySettings.cs │ │ ├── IJsMinifySettings.cs │ │ ├── IIncludeHandlingSettings.cs │ │ ├── IIncludeTypeSettings.cs │ │ └── CssTypeElement.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── IIncludeStorage.cs │ ├── Include.cs │ └── IIncludeCombiner.cs ├── MvcContrib.Unity │ └── IUnityContainerAccessor.cs ├── MVCContrib.gpState ├── MvcContrib.Castle │ └── ICastleBindingContainer.cs └── MvcContrib.StructureMap │ └── StructureMapControllerFactory.cs ├── bin ├── castle │ ├── Castle Trunk.txt │ ├── NVelocity.dll │ ├── Castle.Core.dll │ ├── Castle.Windsor.dll │ ├── Castle.ActiveRecord.dll │ ├── Castle.DynamicProxy.dll │ ├── Castle.MicroKernel.dll │ ├── Castle.DynamicProxy2.dll │ ├── Castle.ActiveRecord.Linq.dll │ ├── Castle.Components.Binder.dll │ ├── Castle.Facilities.Cache.dll │ ├── Castle.Components.Scheduler.dll │ ├── Castle.Components.Validator.dll │ ├── Castle.Facilities.Logging.dll │ ├── Castle.MonoRail.Framework.dll │ ├── Castle.MonoRail.TestSupport.dll │ ├── Castle.MonoRail.Views.Brail.dll │ ├── Castle.Services.Transaction.dll │ ├── Castle.Components.Pagination.dll │ ├── Castle.Facilities.Synchronize.dll │ ├── Castle.MonoRail.Views.AspView.dll │ ├── Castle.Facilities.WcfIntegration.dll │ ├── Castle.MonoRail.TransformFilters.dll │ ├── Castle.MonoRail.WindsorExtension.dll │ ├── Castle.Components.Common.EmailSender.dll │ ├── Castle.Components.DictionaryAdapter.dll │ ├── Castle.Facilities.BatchRegistration.dll │ ├── Castle.Facilities.WcfIntegration.Demo.dll │ ├── Castle.MonoRail.ActiveRecordSupport.dll │ ├── Castle.VSNetIntegration.CastleWizards.dll │ ├── Castle.Components.Common.TemplateEngine.dll │ ├── Castle.Facilities.NHibernateIntegration.dll │ ├── Castle.Services.Logging.NLogIntegration.dll │ ├── Castle.Facilities.ActiveRecordIntegration.dll │ ├── Castle.Facilities.Remoting.TestComponents.dll │ ├── Castle.MonoRail.Framework.Views.NVelocity.dll │ ├── Castle.Services.Logging.Log4netIntegration.dll │ ├── es │ │ └── Castle.Components.Validator.resources.dll │ ├── fr │ │ └── Castle.Components.Validator.resources.dll │ ├── he │ │ └── Castle.Components.Validator.resources.dll │ ├── it │ │ └── Castle.Components.Validator.resources.dll │ ├── lt │ │ └── Castle.Components.Validator.resources.dll │ ├── lv │ │ └── Castle.Components.Validator.resources.dll │ ├── mk │ │ └── Castle.Components.Validator.resources.dll │ ├── nl │ │ └── Castle.Components.Validator.resources.dll │ ├── pl │ │ └── Castle.Components.Validator.resources.dll │ ├── pt-BR │ │ └── Castle.MonoRail.Framework.resources.dll │ ├── pt │ │ └── Castle.Components.Validator.resources.dll │ ├── ru │ │ └── Castle.Components.Validator.resources.dll │ ├── sv │ │ └── Castle.Components.Validator.resources.dll │ ├── zh-TW │ │ └── Castle.MonoRail.Framework.resources.dll │ ├── Castle.Components.Scheduler.WindsorExtension.dll │ ├── Castle.Facilities.AutomaticTransactionManagement.dll │ ├── Castle.Components.Common.TemplateEngine.NVelocityTemplateEngine.dll │ └── Castle.Facilities.Remoting.TestComponents.xml ├── nunit │ ├── runpnunit.bat │ ├── fit.dll │ ├── nunit.exe │ ├── log4net.dll │ ├── runFile.exe │ ├── nunit-x86.exe │ ├── nunit.core.dll │ ├── nunit.util.dll │ ├── nunit-agent.exe │ ├── nunit-console.exe │ ├── nunit.mocks.dll │ ├── nunit.uikit.dll │ ├── pnunit-agent.exe │ ├── pnunit.tests.dll │ ├── nunit.fixtures.dll │ ├── nunit.framework.dll │ ├── pnunit-launcher.exe │ ├── agent.conf │ ├── nunit-console-x86.exe │ ├── nunit-gui-runner.dll │ ├── nunit.uiexception.dll │ ├── pnunit.framework.dll │ ├── nunit-console-runner.dll │ ├── nunit.core.interfaces.dll │ ├── agent.log.conf │ ├── launcher.log.conf │ └── NUnitTests.nunit ├── nant │ ├── NAnt.exe │ ├── scvs.exe │ ├── NAnt.Core.dll │ ├── log4net.dll │ ├── NAnt.NUnit.dll │ ├── NAnt.DotNetTasks.dll │ ├── NAnt.MSNetTasks.dll │ ├── NAnt.NUnit1Tasks.dll │ ├── NAnt.NUnit2Tasks.dll │ ├── NAnt.VSNetTasks.dll │ ├── NAnt.Win32Tasks.dll │ ├── NAnt.VisualCppTasks.dll │ ├── NAnt.CompressionTasks.dll │ ├── NDoc.Documenter.NAnt.dll │ ├── lib │ │ ├── net │ │ │ ├── 1.0 │ │ │ │ ├── NDoc.Core.dll │ │ │ │ ├── nunit.core.dll │ │ │ │ ├── nunit.util.dll │ │ │ │ ├── NDoc.ExtendedUI.dll │ │ │ │ ├── nunit.framework.dll │ │ │ │ └── NDoc.Documenter.Msdn.dll │ │ │ ├── 1.1 │ │ │ │ ├── NDoc.Core.dll │ │ │ │ ├── nunit.core.dll │ │ │ │ ├── nunit.util.dll │ │ │ │ ├── NDoc.ExtendedUI.dll │ │ │ │ ├── nunit.framework.dll │ │ │ │ └── NDoc.Documenter.Msdn.dll │ │ │ └── 2.0 │ │ │ │ ├── NDoc.Core.dll │ │ │ │ ├── nunit.core.dll │ │ │ │ ├── nunit.util.dll │ │ │ │ ├── NDoc.ExtendedUI.dll │ │ │ │ ├── nunit.framework.dll │ │ │ │ └── NDoc.Documenter.Msdn.dll │ │ ├── mono │ │ │ ├── 1.0 │ │ │ │ ├── NDoc.Core.dll │ │ │ │ ├── nunit.core.dll │ │ │ │ ├── nunit.util.dll │ │ │ │ ├── NDoc.ExtendedUI.dll │ │ │ │ ├── nunit.framework.dll │ │ │ │ └── NDoc.Documenter.Msdn.dll │ │ │ └── 2.0 │ │ │ │ ├── NDoc.Core.dll │ │ │ │ ├── nunit.core.dll │ │ │ │ ├── nunit.util.dll │ │ │ │ ├── NDoc.ExtendedUI.dll │ │ │ │ ├── nunit.framework.dll │ │ │ │ └── NDoc.Documenter.Msdn.dll │ │ └── common │ │ │ └── neutral │ │ │ ├── NUnitCore.dll │ │ │ ├── ICSharpCode.SharpCvsLib.dll │ │ │ ├── ICSharpCode.SharpZipLib.dll │ │ │ └── ICSharpCode.SharpCvsLib.Console.dll │ ├── NAnt.SourceControlTasks.dll │ └── extensions │ │ └── common │ │ └── 2.0 │ │ └── NAnt.MSBuild.dll ├── boo │ ├── Boo.Lang.dll │ ├── Boo.Lang.Parser.dll │ ├── Boo.Lang.Compiler.dll │ └── Boo.Lang.Extensions.dll ├── mvpxml │ └── Mvp.Xml.dll ├── ILMerge │ └── ILMerge.exe ├── watin │ ├── WatiN.Core.dll │ ├── Interop.SHDocVw.dll │ └── Microsoft.mshtml.dll ├── logo │ └── logoset-final.jpg ├── spring.net │ ├── Spring.Aop.dll │ ├── Spring.Web.dll │ ├── Spring.Core.dll │ ├── Spring.Data.dll │ ├── antlr.runtime.dll │ ├── Common.Logging.dll │ ├── Spring.Services.dll │ ├── Spring.Messaging.dll │ ├── Spring.Messaging.Nms.dll │ ├── Spring.Testing.NUnit.dll │ ├── Spring.Data.NHibernate.dll │ ├── Spring.Web.Extensions.dll │ ├── Spring.Data.NHibernate12.dll │ ├── Spring.Data.NHibernate20.dll │ └── Spring.Scheduling.Quartz.dll ├── AspNetMvc │ ├── System.Web.Mvc.dll │ ├── Microsoft.Web.Mvc.dll │ ├── System.Web.Routing.dll │ └── System.Web.Abstractions.dll ├── Codeplex │ ├── CreateRelease.exe │ ├── CreateRelease.pdb │ ├── CodePlex.WebServices.Client.dll │ ├── CodePlex.WebServices.Client.pdb │ └── CodePlex.WebServices.Client.XmlSerializers.dll ├── rhinomocks │ ├── Rhino.Mocks.dll │ └── acknowledgements.txt ├── structuremap │ ├── StructureMap.dll │ ├── StructureMapDoctor.exe │ └── StructureMap.AutoMocking.dll ├── HtmlAgilityPack │ └── HtmlAgilityPack.dll ├── unity │ ├── Microsoft.Practices.Unity.dll │ ├── Microsoft.Practices.ObjectBuilder2.dll │ ├── Microsoft.Practices.Unity.Configuration.dll │ └── Microsoft.Practices.Unity.StaticFactory.dll ├── Yahoo.Yui.Compressor │ ├── Yahoo.Yui.Compressor.dll │ └── EcmaScript.NET.modified.dll └── commonservicelocator │ ├── Microsoft.Practices.ServiceLocation.dll │ └── Microsoft.Practices.ServiceLocation.pdb ├── Credits.txt ├── latestversion ├── ChangeLog.txt ├── changelog-old.txt └── ReleaseDescription.txt ├── .gitignore └── README.textile /Click To Build.bat: -------------------------------------------------------------------------------- 1 | build.bat %* & pause -------------------------------------------------------------------------------- /CommiterBuild.bat: -------------------------------------------------------------------------------- 1 | build.bat commiter & pause -------------------------------------------------------------------------------- /src/MVCContrib.UnitTests/IncludeHandling/exists.txt: -------------------------------------------------------------------------------- 1 | hello world, i exist! -------------------------------------------------------------------------------- /bin/castle/Castle Trunk.txt: -------------------------------------------------------------------------------- 1 | Built from revision 5754 from the Castle trunk. -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.PortableArea/PortableAreaSpike/Sample.csproj: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Credits.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/Credits.txt -------------------------------------------------------------------------------- /bin/nunit/runpnunit.bat: -------------------------------------------------------------------------------- 1 | start pnunit-agent agent.conf 2 | pnunit-launcher test.conf -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.PortableArea/LoginPortableArea/LoginPortableArea.csproj: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bin/nant/NAnt.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nant/NAnt.exe -------------------------------------------------------------------------------- /bin/nant/scvs.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nant/scvs.exe -------------------------------------------------------------------------------- /bin/nunit/fit.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nunit/fit.dll -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.IncludeHandling/MvcContrib.Samples.IncludeHandling/favicon.ico: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bin/nunit/nunit.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nunit/nunit.exe -------------------------------------------------------------------------------- /src/MVCContrib.UnitTests/IncludeHandling/configs/DefaultsAreCorrect.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /bin/boo/Boo.Lang.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/boo/Boo.Lang.dll -------------------------------------------------------------------------------- /bin/mvpxml/Mvp.Xml.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/mvpxml/Mvp.Xml.dll -------------------------------------------------------------------------------- /bin/nant/NAnt.Core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nant/NAnt.Core.dll -------------------------------------------------------------------------------- /bin/nant/log4net.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nant/log4net.dll -------------------------------------------------------------------------------- /bin/nunit/log4net.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nunit/log4net.dll -------------------------------------------------------------------------------- /bin/nunit/runFile.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nunit/runFile.exe -------------------------------------------------------------------------------- /bin/ILMerge/ILMerge.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/ILMerge/ILMerge.exe -------------------------------------------------------------------------------- /bin/castle/NVelocity.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/castle/NVelocity.dll -------------------------------------------------------------------------------- /bin/nant/NAnt.NUnit.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nant/NAnt.NUnit.dll -------------------------------------------------------------------------------- /bin/nunit/nunit-x86.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nunit/nunit-x86.exe -------------------------------------------------------------------------------- /bin/nunit/nunit.core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nunit/nunit.core.dll -------------------------------------------------------------------------------- /bin/nunit/nunit.util.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nunit/nunit.util.dll -------------------------------------------------------------------------------- /bin/watin/WatiN.Core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/watin/WatiN.Core.dll -------------------------------------------------------------------------------- /src/MVCContrib/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Security; 2 | 3 | [assembly: AllowPartiallyTrustedCallers] 4 | -------------------------------------------------------------------------------- /bin/boo/Boo.Lang.Parser.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/boo/Boo.Lang.Parser.dll -------------------------------------------------------------------------------- /bin/castle/Castle.Core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/castle/Castle.Core.dll -------------------------------------------------------------------------------- /bin/logo/logoset-final.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/logo/logoset-final.jpg -------------------------------------------------------------------------------- /bin/nunit/nunit-agent.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nunit/nunit-agent.exe -------------------------------------------------------------------------------- /bin/nunit/nunit-console.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nunit/nunit-console.exe -------------------------------------------------------------------------------- /bin/nunit/nunit.mocks.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nunit/nunit.mocks.dll -------------------------------------------------------------------------------- /bin/nunit/nunit.uikit.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nunit/nunit.uikit.dll -------------------------------------------------------------------------------- /bin/nunit/pnunit-agent.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nunit/pnunit-agent.exe -------------------------------------------------------------------------------- /bin/nunit/pnunit.tests.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nunit/pnunit.tests.dll -------------------------------------------------------------------------------- /latestversion/ChangeLog.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/latestversion/ChangeLog.txt -------------------------------------------------------------------------------- /src/CommonAssemblyInfo.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/src/CommonAssemblyInfo.cs -------------------------------------------------------------------------------- /bin/boo/Boo.Lang.Compiler.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/boo/Boo.Lang.Compiler.dll -------------------------------------------------------------------------------- /bin/castle/Castle.Windsor.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/castle/Castle.Windsor.dll -------------------------------------------------------------------------------- /bin/nant/NAnt.DotNetTasks.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nant/NAnt.DotNetTasks.dll -------------------------------------------------------------------------------- /bin/nant/NAnt.MSNetTasks.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nant/NAnt.MSNetTasks.dll -------------------------------------------------------------------------------- /bin/nant/NAnt.NUnit1Tasks.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nant/NAnt.NUnit1Tasks.dll -------------------------------------------------------------------------------- /bin/nant/NAnt.NUnit2Tasks.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nant/NAnt.NUnit2Tasks.dll -------------------------------------------------------------------------------- /bin/nant/NAnt.VSNetTasks.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nant/NAnt.VSNetTasks.dll -------------------------------------------------------------------------------- /bin/nant/NAnt.Win32Tasks.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nant/NAnt.Win32Tasks.dll -------------------------------------------------------------------------------- /bin/nunit/nunit.fixtures.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nunit/nunit.fixtures.dll -------------------------------------------------------------------------------- /bin/nunit/nunit.framework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nunit/nunit.framework.dll -------------------------------------------------------------------------------- /bin/nunit/pnunit-launcher.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nunit/pnunit-launcher.exe -------------------------------------------------------------------------------- /bin/spring.net/Spring.Aop.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/spring.net/Spring.Aop.dll -------------------------------------------------------------------------------- /bin/spring.net/Spring.Web.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/spring.net/Spring.Web.dll -------------------------------------------------------------------------------- /bin/watin/Interop.SHDocVw.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/watin/Interop.SHDocVw.dll -------------------------------------------------------------------------------- /bin/AspNetMvc/System.Web.Mvc.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/AspNetMvc/System.Web.Mvc.dll -------------------------------------------------------------------------------- /bin/Codeplex/CreateRelease.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/Codeplex/CreateRelease.exe -------------------------------------------------------------------------------- /bin/Codeplex/CreateRelease.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/Codeplex/CreateRelease.pdb -------------------------------------------------------------------------------- /bin/boo/Boo.Lang.Extensions.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/boo/Boo.Lang.Extensions.dll -------------------------------------------------------------------------------- /bin/nant/NAnt.VisualCppTasks.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nant/NAnt.VisualCppTasks.dll -------------------------------------------------------------------------------- /bin/nunit/agent.conf: -------------------------------------------------------------------------------- 1 | 2 | 8080 3 | . 4 | -------------------------------------------------------------------------------- /bin/nunit/nunit-console-x86.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nunit/nunit-console-x86.exe -------------------------------------------------------------------------------- /bin/nunit/nunit-gui-runner.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nunit/nunit-gui-runner.dll -------------------------------------------------------------------------------- /bin/nunit/nunit.uiexception.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nunit/nunit.uiexception.dll -------------------------------------------------------------------------------- /bin/nunit/pnunit.framework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nunit/pnunit.framework.dll -------------------------------------------------------------------------------- /bin/rhinomocks/Rhino.Mocks.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/rhinomocks/Rhino.Mocks.dll -------------------------------------------------------------------------------- /bin/spring.net/Spring.Core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/spring.net/Spring.Core.dll -------------------------------------------------------------------------------- /bin/spring.net/Spring.Data.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/spring.net/Spring.Data.dll -------------------------------------------------------------------------------- /bin/spring.net/antlr.runtime.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/spring.net/antlr.runtime.dll -------------------------------------------------------------------------------- /bin/watin/Microsoft.mshtml.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/watin/Microsoft.mshtml.dll -------------------------------------------------------------------------------- /latestversion/changelog-old.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/latestversion/changelog-old.txt -------------------------------------------------------------------------------- /bin/castle/Castle.ActiveRecord.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/castle/Castle.ActiveRecord.dll -------------------------------------------------------------------------------- /bin/castle/Castle.DynamicProxy.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/castle/Castle.DynamicProxy.dll -------------------------------------------------------------------------------- /bin/castle/Castle.MicroKernel.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/castle/Castle.MicroKernel.dll -------------------------------------------------------------------------------- /bin/nant/NAnt.CompressionTasks.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nant/NAnt.CompressionTasks.dll -------------------------------------------------------------------------------- /bin/nant/NDoc.Documenter.NAnt.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nant/NDoc.Documenter.NAnt.dll -------------------------------------------------------------------------------- /bin/nant/lib/net/1.0/NDoc.Core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nant/lib/net/1.0/NDoc.Core.dll -------------------------------------------------------------------------------- /bin/nant/lib/net/1.1/NDoc.Core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nant/lib/net/1.1/NDoc.Core.dll -------------------------------------------------------------------------------- /bin/nant/lib/net/2.0/NDoc.Core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nant/lib/net/2.0/NDoc.Core.dll -------------------------------------------------------------------------------- /bin/nunit/nunit-console-runner.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nunit/nunit-console-runner.dll -------------------------------------------------------------------------------- /bin/spring.net/Common.Logging.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/spring.net/Common.Logging.dll -------------------------------------------------------------------------------- /bin/spring.net/Spring.Services.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/spring.net/Spring.Services.dll -------------------------------------------------------------------------------- /bin/structuremap/StructureMap.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/structuremap/StructureMap.dll -------------------------------------------------------------------------------- /bin/AspNetMvc/Microsoft.Web.Mvc.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/AspNetMvc/Microsoft.Web.Mvc.dll -------------------------------------------------------------------------------- /bin/AspNetMvc/System.Web.Routing.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/AspNetMvc/System.Web.Routing.dll -------------------------------------------------------------------------------- /bin/castle/Castle.DynamicProxy2.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/castle/Castle.DynamicProxy2.dll -------------------------------------------------------------------------------- /bin/nant/NAnt.SourceControlTasks.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nant/NAnt.SourceControlTasks.dll -------------------------------------------------------------------------------- /bin/nant/lib/mono/1.0/NDoc.Core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nant/lib/mono/1.0/NDoc.Core.dll -------------------------------------------------------------------------------- /bin/nant/lib/mono/1.0/nunit.core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nant/lib/mono/1.0/nunit.core.dll -------------------------------------------------------------------------------- /bin/nant/lib/mono/1.0/nunit.util.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nant/lib/mono/1.0/nunit.util.dll -------------------------------------------------------------------------------- /bin/nant/lib/mono/2.0/NDoc.Core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nant/lib/mono/2.0/NDoc.Core.dll -------------------------------------------------------------------------------- /bin/nant/lib/mono/2.0/nunit.core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nant/lib/mono/2.0/nunit.core.dll -------------------------------------------------------------------------------- /bin/nant/lib/mono/2.0/nunit.util.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nant/lib/mono/2.0/nunit.util.dll -------------------------------------------------------------------------------- /bin/nant/lib/net/1.0/nunit.core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nant/lib/net/1.0/nunit.core.dll -------------------------------------------------------------------------------- /bin/nant/lib/net/1.0/nunit.util.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nant/lib/net/1.0/nunit.util.dll -------------------------------------------------------------------------------- /bin/nant/lib/net/1.1/nunit.core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nant/lib/net/1.1/nunit.core.dll -------------------------------------------------------------------------------- /bin/nant/lib/net/1.1/nunit.util.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nant/lib/net/1.1/nunit.util.dll -------------------------------------------------------------------------------- /bin/nant/lib/net/2.0/nunit.core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nant/lib/net/2.0/nunit.core.dll -------------------------------------------------------------------------------- /bin/nant/lib/net/2.0/nunit.util.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nant/lib/net/2.0/nunit.util.dll -------------------------------------------------------------------------------- /bin/nunit/nunit.core.interfaces.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nunit/nunit.core.interfaces.dll -------------------------------------------------------------------------------- /bin/spring.net/Spring.Messaging.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/spring.net/Spring.Messaging.dll -------------------------------------------------------------------------------- /bin/HtmlAgilityPack/HtmlAgilityPack.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/HtmlAgilityPack/HtmlAgilityPack.dll -------------------------------------------------------------------------------- /bin/castle/Castle.ActiveRecord.Linq.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/castle/Castle.ActiveRecord.Linq.dll -------------------------------------------------------------------------------- /bin/castle/Castle.Components.Binder.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/castle/Castle.Components.Binder.dll -------------------------------------------------------------------------------- /bin/castle/Castle.Facilities.Cache.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/castle/Castle.Facilities.Cache.dll -------------------------------------------------------------------------------- /bin/spring.net/Spring.Messaging.Nms.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/spring.net/Spring.Messaging.Nms.dll -------------------------------------------------------------------------------- /bin/spring.net/Spring.Testing.NUnit.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/spring.net/Spring.Testing.NUnit.dll -------------------------------------------------------------------------------- /bin/structuremap/StructureMapDoctor.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/structuremap/StructureMapDoctor.exe -------------------------------------------------------------------------------- /bin/unity/Microsoft.Practices.Unity.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/unity/Microsoft.Practices.Unity.dll -------------------------------------------------------------------------------- /bin/AspNetMvc/System.Web.Abstractions.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/AspNetMvc/System.Web.Abstractions.dll -------------------------------------------------------------------------------- /bin/castle/Castle.Components.Scheduler.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/castle/Castle.Components.Scheduler.dll -------------------------------------------------------------------------------- /bin/castle/Castle.Components.Validator.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/castle/Castle.Components.Validator.dll -------------------------------------------------------------------------------- /bin/castle/Castle.Facilities.Logging.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/castle/Castle.Facilities.Logging.dll -------------------------------------------------------------------------------- /bin/castle/Castle.MonoRail.Framework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/castle/Castle.MonoRail.Framework.dll -------------------------------------------------------------------------------- /bin/castle/Castle.MonoRail.TestSupport.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/castle/Castle.MonoRail.TestSupport.dll -------------------------------------------------------------------------------- /bin/castle/Castle.MonoRail.Views.Brail.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/castle/Castle.MonoRail.Views.Brail.dll -------------------------------------------------------------------------------- /bin/castle/Castle.Services.Transaction.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/castle/Castle.Services.Transaction.dll -------------------------------------------------------------------------------- /bin/nant/lib/common/neutral/NUnitCore.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nant/lib/common/neutral/NUnitCore.dll -------------------------------------------------------------------------------- /bin/nant/lib/mono/1.0/NDoc.ExtendedUI.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nant/lib/mono/1.0/NDoc.ExtendedUI.dll -------------------------------------------------------------------------------- /bin/nant/lib/mono/1.0/nunit.framework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nant/lib/mono/1.0/nunit.framework.dll -------------------------------------------------------------------------------- /bin/nant/lib/mono/2.0/NDoc.ExtendedUI.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nant/lib/mono/2.0/NDoc.ExtendedUI.dll -------------------------------------------------------------------------------- /bin/nant/lib/mono/2.0/nunit.framework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nant/lib/mono/2.0/nunit.framework.dll -------------------------------------------------------------------------------- /bin/nant/lib/net/1.0/NDoc.ExtendedUI.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nant/lib/net/1.0/NDoc.ExtendedUI.dll -------------------------------------------------------------------------------- /bin/nant/lib/net/1.0/nunit.framework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nant/lib/net/1.0/nunit.framework.dll -------------------------------------------------------------------------------- /bin/nant/lib/net/1.1/NDoc.ExtendedUI.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nant/lib/net/1.1/NDoc.ExtendedUI.dll -------------------------------------------------------------------------------- /bin/nant/lib/net/1.1/nunit.framework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nant/lib/net/1.1/nunit.framework.dll -------------------------------------------------------------------------------- /bin/nant/lib/net/2.0/NDoc.ExtendedUI.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nant/lib/net/2.0/NDoc.ExtendedUI.dll -------------------------------------------------------------------------------- /bin/nant/lib/net/2.0/nunit.framework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nant/lib/net/2.0/nunit.framework.dll -------------------------------------------------------------------------------- /bin/spring.net/Spring.Data.NHibernate.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/spring.net/Spring.Data.NHibernate.dll -------------------------------------------------------------------------------- /bin/spring.net/Spring.Web.Extensions.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/spring.net/Spring.Web.Extensions.dll -------------------------------------------------------------------------------- /src/MVCContrib.UnitTests/UI/PagerTests.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/src/MVCContrib.UnitTests/UI/PagerTests.cs -------------------------------------------------------------------------------- /src/MvcContrib.FluentHtml/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | 3 | [assembly: AssemblyTitle("MvcContrib.FluentHtml")] 4 | -------------------------------------------------------------------------------- /bin/Codeplex/CodePlex.WebServices.Client.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/Codeplex/CodePlex.WebServices.Client.dll -------------------------------------------------------------------------------- /bin/Codeplex/CodePlex.WebServices.Client.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/Codeplex/CodePlex.WebServices.Client.pdb -------------------------------------------------------------------------------- /bin/castle/Castle.Components.Pagination.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/castle/Castle.Components.Pagination.dll -------------------------------------------------------------------------------- /bin/castle/Castle.Facilities.Synchronize.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/castle/Castle.Facilities.Synchronize.dll -------------------------------------------------------------------------------- /bin/castle/Castle.MonoRail.Views.AspView.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/castle/Castle.MonoRail.Views.AspView.dll -------------------------------------------------------------------------------- /bin/spring.net/Spring.Data.NHibernate12.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/spring.net/Spring.Data.NHibernate12.dll -------------------------------------------------------------------------------- /bin/spring.net/Spring.Data.NHibernate20.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/spring.net/Spring.Data.NHibernate20.dll -------------------------------------------------------------------------------- /bin/spring.net/Spring.Scheduling.Quartz.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/spring.net/Spring.Scheduling.Quartz.dll -------------------------------------------------------------------------------- /src/MVCContrib.UnitTests/IoC/IDependency.cs: -------------------------------------------------------------------------------- 1 | namespace MvcContrib.UnitTests.IoC 2 | { 3 | public interface IDependency 4 | { 5 | } 6 | } -------------------------------------------------------------------------------- /bin/castle/Castle.Facilities.WcfIntegration.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/castle/Castle.Facilities.WcfIntegration.dll -------------------------------------------------------------------------------- /bin/castle/Castle.MonoRail.TransformFilters.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/castle/Castle.MonoRail.TransformFilters.dll -------------------------------------------------------------------------------- /bin/castle/Castle.MonoRail.WindsorExtension.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/castle/Castle.MonoRail.WindsorExtension.dll -------------------------------------------------------------------------------- /bin/nant/extensions/common/2.0/NAnt.MSBuild.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nant/extensions/common/2.0/NAnt.MSBuild.dll -------------------------------------------------------------------------------- /bin/nant/lib/mono/1.0/NDoc.Documenter.Msdn.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nant/lib/mono/1.0/NDoc.Documenter.Msdn.dll -------------------------------------------------------------------------------- /bin/nant/lib/mono/2.0/NDoc.Documenter.Msdn.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nant/lib/mono/2.0/NDoc.Documenter.Msdn.dll -------------------------------------------------------------------------------- /bin/nant/lib/net/1.0/NDoc.Documenter.Msdn.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nant/lib/net/1.0/NDoc.Documenter.Msdn.dll -------------------------------------------------------------------------------- /bin/nant/lib/net/1.1/NDoc.Documenter.Msdn.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nant/lib/net/1.1/NDoc.Documenter.Msdn.dll -------------------------------------------------------------------------------- /bin/nant/lib/net/2.0/NDoc.Documenter.Msdn.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nant/lib/net/2.0/NDoc.Documenter.Msdn.dll -------------------------------------------------------------------------------- /bin/structuremap/StructureMap.AutoMocking.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/structuremap/StructureMap.AutoMocking.dll -------------------------------------------------------------------------------- /src/MvcContrib.FluentHtml/Behaviors/IBehaviorMarker.cs: -------------------------------------------------------------------------------- 1 | namespace MvcContrib.FluentHtml.Behaviors 2 | { 3 | public interface IBehaviorMarker { } 4 | } -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.IoC/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.cs" Inherits="MvcContrib.Samples.IoC.Global" Language="C#" %> 2 | -------------------------------------------------------------------------------- /bin/Yahoo.Yui.Compressor/Yahoo.Yui.Compressor.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/Yahoo.Yui.Compressor/Yahoo.Yui.Compressor.dll -------------------------------------------------------------------------------- /bin/unity/Microsoft.Practices.ObjectBuilder2.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/unity/Microsoft.Practices.ObjectBuilder2.dll -------------------------------------------------------------------------------- /src/Samples/IocControllerFactory/Website/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.cs" Inherits="Website.GlobalApplication" Language="C#" %> 2 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.UI/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.cs" Inherits="MvcContrib.Samples.UI.MvcApplication" Language="C#" %> 2 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.TestHelper/Website/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.cs" Inherits="Website.GlobalApplication" Language="C#" %> 2 | -------------------------------------------------------------------------------- /bin/Yahoo.Yui.Compressor/EcmaScript.NET.modified.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/Yahoo.Yui.Compressor/EcmaScript.NET.modified.dll -------------------------------------------------------------------------------- /bin/castle/Castle.Components.Common.EmailSender.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/castle/Castle.Components.Common.EmailSender.dll -------------------------------------------------------------------------------- /bin/castle/Castle.Components.DictionaryAdapter.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/castle/Castle.Components.DictionaryAdapter.dll -------------------------------------------------------------------------------- /bin/castle/Castle.Facilities.BatchRegistration.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/castle/Castle.Facilities.BatchRegistration.dll -------------------------------------------------------------------------------- /bin/castle/Castle.Facilities.WcfIntegration.Demo.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/castle/Castle.Facilities.WcfIntegration.Demo.dll -------------------------------------------------------------------------------- /bin/castle/Castle.MonoRail.ActiveRecordSupport.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/castle/Castle.MonoRail.ActiveRecordSupport.dll -------------------------------------------------------------------------------- /bin/castle/Castle.VSNetIntegration.CastleWizards.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/castle/Castle.VSNetIntegration.CastleWizards.dll -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.IoC.Spring/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.cs" Inherits="MvcContrib.Samples.IoC.Global" Language="C#" %> 2 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.UI/Content/blarg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/src/Samples/MvcContrib.Samples.UI/Content/blarg.gif -------------------------------------------------------------------------------- /bin/castle/Castle.Components.Common.TemplateEngine.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/castle/Castle.Components.Common.TemplateEngine.dll -------------------------------------------------------------------------------- /bin/castle/Castle.Facilities.NHibernateIntegration.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/castle/Castle.Facilities.NHibernateIntegration.dll -------------------------------------------------------------------------------- /bin/castle/Castle.Services.Logging.NLogIntegration.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/castle/Castle.Services.Logging.NLogIntegration.dll -------------------------------------------------------------------------------- /bin/unity/Microsoft.Practices.Unity.Configuration.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/unity/Microsoft.Practices.Unity.Configuration.dll -------------------------------------------------------------------------------- /bin/unity/Microsoft.Practices.Unity.StaticFactory.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/unity/Microsoft.Practices.Unity.StaticFactory.dll -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.ConventionController/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.cs" Inherits="MvcContrib.Samples.Global" Language="C#" %> 2 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.IncludeHandling/MvcContrib.Samples.IncludeHandling/Content/js/common.js: -------------------------------------------------------------------------------- 1 | if (console && console.log) { 2 | console.log("hi"); 3 | } 4 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.SubControllers/Website/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.cs" Inherits="Website.MvcApplication" Language="C#" %> 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | build/ 2 | *.suo 3 | *.user 4 | bin 5 | !/bin 6 | obj 7 | _ReSharper* 8 | *.csproj.user 9 | *.resharper.user 10 | *.suo 11 | *.cache 12 | TestResult.xml -------------------------------------------------------------------------------- /bin/castle/Castle.Facilities.ActiveRecordIntegration.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/castle/Castle.Facilities.ActiveRecordIntegration.dll -------------------------------------------------------------------------------- /bin/castle/Castle.Facilities.Remoting.TestComponents.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/castle/Castle.Facilities.Remoting.TestComponents.dll -------------------------------------------------------------------------------- /bin/castle/Castle.MonoRail.Framework.Views.NVelocity.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/castle/Castle.MonoRail.Framework.Views.NVelocity.dll -------------------------------------------------------------------------------- /bin/castle/Castle.Services.Logging.Log4netIntegration.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/castle/Castle.Services.Logging.Log4netIntegration.dll -------------------------------------------------------------------------------- /bin/castle/es/Castle.Components.Validator.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/castle/es/Castle.Components.Validator.resources.dll -------------------------------------------------------------------------------- /bin/castle/fr/Castle.Components.Validator.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/castle/fr/Castle.Components.Validator.resources.dll -------------------------------------------------------------------------------- /bin/castle/he/Castle.Components.Validator.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/castle/he/Castle.Components.Validator.resources.dll -------------------------------------------------------------------------------- /bin/castle/it/Castle.Components.Validator.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/castle/it/Castle.Components.Validator.resources.dll -------------------------------------------------------------------------------- /bin/castle/lt/Castle.Components.Validator.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/castle/lt/Castle.Components.Validator.resources.dll -------------------------------------------------------------------------------- /bin/castle/lv/Castle.Components.Validator.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/castle/lv/Castle.Components.Validator.resources.dll -------------------------------------------------------------------------------- /bin/castle/mk/Castle.Components.Validator.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/castle/mk/Castle.Components.Validator.resources.dll -------------------------------------------------------------------------------- /bin/castle/nl/Castle.Components.Validator.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/castle/nl/Castle.Components.Validator.resources.dll -------------------------------------------------------------------------------- /bin/castle/pl/Castle.Components.Validator.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/castle/pl/Castle.Components.Validator.resources.dll -------------------------------------------------------------------------------- /bin/castle/pt-BR/Castle.MonoRail.Framework.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/castle/pt-BR/Castle.MonoRail.Framework.resources.dll -------------------------------------------------------------------------------- /bin/castle/pt/Castle.Components.Validator.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/castle/pt/Castle.Components.Validator.resources.dll -------------------------------------------------------------------------------- /bin/castle/ru/Castle.Components.Validator.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/castle/ru/Castle.Components.Validator.resources.dll -------------------------------------------------------------------------------- /bin/castle/sv/Castle.Components.Validator.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/castle/sv/Castle.Components.Validator.resources.dll -------------------------------------------------------------------------------- /bin/castle/zh-TW/Castle.MonoRail.Framework.resources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/castle/zh-TW/Castle.MonoRail.Framework.resources.dll -------------------------------------------------------------------------------- /bin/nant/lib/common/neutral/ICSharpCode.SharpCvsLib.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nant/lib/common/neutral/ICSharpCode.SharpCvsLib.dll -------------------------------------------------------------------------------- /bin/nant/lib/common/neutral/ICSharpCode.SharpZipLib.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nant/lib/common/neutral/ICSharpCode.SharpZipLib.dll -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.UI/Models/Color.cs: -------------------------------------------------------------------------------- 1 | namespace MvcContrib.Samples.UI.Models 2 | { 3 | public enum Color 4 | { 5 | Red, 6 | Blue, 7 | Green 8 | } 9 | } -------------------------------------------------------------------------------- /bin/Codeplex/CodePlex.WebServices.Client.XmlSerializers.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/Codeplex/CodePlex.WebServices.Client.XmlSerializers.dll -------------------------------------------------------------------------------- /bin/castle/Castle.Components.Scheduler.WindsorExtension.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/castle/Castle.Components.Scheduler.WindsorExtension.dll -------------------------------------------------------------------------------- /src/MVCContrib.UnitTests/IoC/SimpleDependency.cs: -------------------------------------------------------------------------------- 1 | namespace MvcContrib.UnitTests.IoC 2 | { 3 | public class SimpleDependency : IDependency 4 | { 5 | 6 | } 7 | } -------------------------------------------------------------------------------- /src/MvcContrib.TestHelper/MvcContrib.TestHelper/ObjectExtensions.cs: -------------------------------------------------------------------------------- 1 | namespace MvcContrib.TestHelper 2 | { 3 | public static class ObjectExtensions 4 | { 5 | } 6 | } -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.InputBuilders/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.cs" Inherits="MvcContrib.UI.InputBuilder.MvcApplication" Language="C#" %> 2 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.UI/Models/Parent.cs: -------------------------------------------------------------------------------- 1 | namespace MvcContrib.Samples.UI.Models 2 | { 3 | public class Parent 4 | { 5 | public string Name { get; set; } 6 | } 7 | } -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.ConventionController/Default.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="MvcContrib.Samples._Default" %> -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.PortableArea/PortableAreaSpike/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.cs" Inherits="PortableAreaSpike.MvcApplication" Language="C#" %> 2 | -------------------------------------------------------------------------------- /bin/castle/Castle.Facilities.AutomaticTransactionManagement.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/castle/Castle.Facilities.AutomaticTransactionManagement.dll -------------------------------------------------------------------------------- /bin/commonservicelocator/Microsoft.Practices.ServiceLocation.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/commonservicelocator/Microsoft.Practices.ServiceLocation.dll -------------------------------------------------------------------------------- /bin/commonservicelocator/Microsoft.Practices.ServiceLocation.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/commonservicelocator/Microsoft.Practices.ServiceLocation.pdb -------------------------------------------------------------------------------- /bin/nant/lib/common/neutral/ICSharpCode.SharpCvsLib.Console.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/nant/lib/common/neutral/ICSharpCode.SharpCvsLib.Console.dll -------------------------------------------------------------------------------- /src/MVCContrib.UnitTests/IncludeHandling/configs/WhenPathMissingAFormatPlaceHolder_WillThrow_pathValidation1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /src/MVCContrib.UnitTests/IncludeHandling/configs/WhenPathMissingAFormatPlaceHolder_WillThrow_pathValidation2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.UnityControllerFactory/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.cs" Inherits="MvcContrib.Samples.UnityControllerFactory.Global" Language="C#" %> 2 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.IncludeHandling/MvcContrib.Samples.IncludeHandling/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.cs" Inherits="Demo.Site.MvcApplication" Language="C#" %> 2 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.PortableArea/PortableAreaSpike/Services/User.cs: -------------------------------------------------------------------------------- 1 | namespace PortableAreaSpike 2 | { 3 | public class User 4 | { 5 | public string Username { get; set; } 6 | } 7 | } -------------------------------------------------------------------------------- /src/MVCContrib/UI/InputBuilder/Attributes/NoAddAttribute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace MvcContrib.UI.InputBuilder.Attributes 4 | { 5 | public class NoAddAttribute : Attribute 6 | { 7 | } 8 | } -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.WindsorControllerFactory/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.cs" Inherits="MvcContrib.Samples.WindsorControllerFactory.Global" Language="C#" %> 2 | 3 | -------------------------------------------------------------------------------- /src/MVCContrib/UI/InputBuilder/Attributes/NoDeleteAttribute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace MvcContrib.UI.InputBuilder.Attributes 4 | { 5 | public class NoDeleteAttribute : Attribute 6 | { 7 | } 8 | } -------------------------------------------------------------------------------- /src/MVCContrib/SimplyRestful/RestfulPostAction.cs: -------------------------------------------------------------------------------- 1 | namespace MvcContrib.SimplyRestful 2 | { 3 | public enum RestfulPostAction 4 | { 5 | Create = 2, 6 | Update = 4, 7 | Destroy = 8 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/MvcContrib.FluentHtml/Html/HtmlEventAttribute.cs: -------------------------------------------------------------------------------- 1 | namespace MvcContrib.FluentHtml.Html 2 | { 3 | public static class HtmlEventAttribute 4 | { 5 | public const string OnClick = "onclick"; 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /bin/castle/Castle.Components.Common.TemplateEngine.NVelocityTemplateEngine.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/bin/castle/Castle.Components.Common.TemplateEngine.NVelocityTemplateEngine.dll -------------------------------------------------------------------------------- /src/MVCContrib.UnitTests/FluentHtml/Fakes/FakeEnum.cs: -------------------------------------------------------------------------------- 1 | namespace MvcContrib.UnitTests.FluentHtml.Fakes 2 | { 3 | public enum FakeEnum 4 | { 5 | Zero, 6 | One, 7 | Two, 8 | Three 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/MVCContrib/UI/InputBuilder/Attributes/CanDeleteAllAttribute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace MvcContrib.UI.InputBuilder.Attributes 4 | { 5 | public class CanDeleteAllAttribute : Attribute 6 | { 7 | } 8 | } -------------------------------------------------------------------------------- /README.textile: -------------------------------------------------------------------------------- 1 | h1. The MvcContrib source has moved 2 | 3 | The MvcContrib source code has moved to Mercurial on CodePlex at http://mvccontrib.codeplex.com 4 | 5 | This GitHub project is no longer being actively maintained. -------------------------------------------------------------------------------- /src/MVCContrib/UI/InputBuilder/InputSpecification/IInputSpecification.cs: -------------------------------------------------------------------------------- 1 | namespace MvcContrib.UI.InputBuilder.InputSpecification 2 | { 3 | public interface IInputSpecification 4 | { 5 | T Model { get; } 6 | } 7 | } -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.PortableArea/PortableAreaSpike/Services/IUserRepository.cs: -------------------------------------------------------------------------------- 1 | namespace PortableAreaSpike 2 | { 3 | public interface IUserRepository 4 | { 5 | User GetByUsername(string username); 6 | } 7 | } -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.UI/Models/PersonViewModel.cs: -------------------------------------------------------------------------------- 1 | namespace MvcContrib.Samples.UI.Models 2 | { 3 | public class PersonViewModel 4 | { 5 | public Person Person; 6 | public string EmployerName; 7 | } 8 | } -------------------------------------------------------------------------------- /src/MVCContrib/MimeTypes.cs: -------------------------------------------------------------------------------- 1 | namespace MvcContrib 2 | { 3 | public static class MimeTypes 4 | { 5 | public const string ApplicationJavaScript = "application/javascript"; 6 | public const string TextCss = "text/css"; 7 | } 8 | } -------------------------------------------------------------------------------- /src/Samples/MvcContrib.TestHelper/Website/Default.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" %> 2 | -------------------------------------------------------------------------------- /src/MvcContrib.ViewEngines.NVelocity/NVelocityConfiguration.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace MvcContrib.ViewEngines 4 | { 5 | public class NVelocityConfiguration 6 | { 7 | public Type[] HtmlExtensionTypes { get; set; } 8 | } 9 | } -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.UnityControllerFactory/Default.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" %> 2 | -------------------------------------------------------------------------------- /src/MVCContrib/IHttpContextProvider.cs: -------------------------------------------------------------------------------- 1 | using System.Web; 2 | 3 | namespace MvcContrib 4 | { 5 | public interface IHttpContextProvider 6 | { 7 | HttpContextBase Context { get; } 8 | HttpRequestBase Request { get; } 9 | } 10 | } -------------------------------------------------------------------------------- /src/MvcContrib.IncludeHandling/IIncludeReader.cs: -------------------------------------------------------------------------------- 1 | namespace MvcContrib.IncludeHandling 2 | { 3 | public interface IIncludeReader 4 | { 5 | string ToAbsolute(string source); 6 | Include Read(string source, IncludeType type); 7 | } 8 | } -------------------------------------------------------------------------------- /src/MvcContrib.Unity/IUnityContainerAccessor.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.Practices.Unity; 2 | namespace MvcContrib.Unity 3 | { 4 | public interface IUnityContainerAccessor 5 | { 6 | IUnityContainer Container { get; } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.InputBuilders/Models/NumberOfTypeEnum.cs: -------------------------------------------------------------------------------- 1 | namespace Web.Models 2 | { 3 | public enum NumberOfTypeEnum 4 | { 5 | One, 6 | Two, 7 | Three, 8 | Four 9 | } 10 | } -------------------------------------------------------------------------------- /bin/castle/Castle.Facilities.Remoting.TestComponents.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Castle.Facilities.Remoting.TestComponents 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /src/MVCContrib/SimplyRestful/RestfulGetAction.cs: -------------------------------------------------------------------------------- 1 | namespace MvcContrib.SimplyRestful 2 | { 3 | public enum RestfulGetAction 4 | { 5 | Show = 1, 6 | Index = 16, 7 | New = 32, 8 | Edit = 64, 9 | Delete = 128 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/MvcContrib.FluentHtml/Behaviors/ISupportsModelState.cs: -------------------------------------------------------------------------------- 1 | using System.Web.Mvc; 2 | 3 | namespace MvcContrib.FluentHtml.Behaviors 4 | { 5 | public interface ISupportsModelState 6 | { 7 | void ApplyModelState(ModelState state); 8 | } 9 | } -------------------------------------------------------------------------------- /src/MvcContrib.IncludeHandling/IKeyGenerator.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace MvcContrib.IncludeHandling 4 | { 5 | public interface IKeyGenerator 6 | { 7 | string Generate(IEnumerable generateFrom); 8 | } 9 | } -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.ConventionController/Models/Shipment.cs: -------------------------------------------------------------------------------- 1 | namespace MvcContrib.Samples.Models 2 | { 3 | public class Shipment 4 | { 5 | public Address ShipTo { get; set; } 6 | public Dimension Dimensions { get; set; } 7 | } 8 | } -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.UI/Models/Company.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace MvcContrib.Samples.UI.Models 4 | { 5 | public class Company 6 | { 7 | public Guid Id { get; set; } 8 | public string Name { get; set; } 9 | } 10 | } -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.WindsorControllerFactory/Default.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" %> 2 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.PortableArea/PortableAreaSpike/Services/IAuthenticationService.cs: -------------------------------------------------------------------------------- 1 | namespace PortableAreaSpike 2 | { 3 | public interface IAuthenticationService 4 | { 5 | bool IsValidLogin(string username, string password); 6 | } 7 | } -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.InputBuilders/Content/smoothness/images/ui-icons_222222_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/src/Samples/MvcContrib.Samples.InputBuilders/Content/smoothness/images/ui-icons_222222_256x240.png -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.InputBuilders/Content/smoothness/images/ui-icons_2e83ff_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/src/Samples/MvcContrib.Samples.InputBuilders/Content/smoothness/images/ui-icons_2e83ff_256x240.png -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.InputBuilders/Content/smoothness/images/ui-icons_454545_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/src/Samples/MvcContrib.Samples.InputBuilders/Content/smoothness/images/ui-icons_454545_256x240.png -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.InputBuilders/Content/smoothness/images/ui-icons_888888_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/src/Samples/MvcContrib.Samples.InputBuilders/Content/smoothness/images/ui-icons_888888_256x240.png -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.InputBuilders/Content/smoothness/images/ui-icons_cd0a0a_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/src/Samples/MvcContrib.Samples.InputBuilders/Content/smoothness/images/ui-icons_cd0a0a_256x240.png -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.InputBuilders/Content/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/src/Samples/MvcContrib.Samples.InputBuilders/Content/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.InputBuilders/Content/smoothness/images/ui-bg_flat_75_ffffff_40x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/src/Samples/MvcContrib.Samples.InputBuilders/Content/smoothness/images/ui-bg_flat_75_ffffff_40x100.png -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.InputBuilders/Content/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/src/Samples/MvcContrib.Samples.InputBuilders/Content/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.InputBuilders/Content/smoothness/images/ui-bg_glass_65_ffffff_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/src/Samples/MvcContrib.Samples.InputBuilders/Content/smoothness/images/ui-bg_glass_65_ffffff_1x400.png -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.InputBuilders/Content/smoothness/images/ui-bg_glass_75_dadada_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/src/Samples/MvcContrib.Samples.InputBuilders/Content/smoothness/images/ui-bg_glass_75_dadada_1x400.png -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.InputBuilders/Content/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/src/Samples/MvcContrib.Samples.InputBuilders/Content/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.InputBuilders/Content/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/src/Samples/MvcContrib.Samples.InputBuilders/Content/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png -------------------------------------------------------------------------------- /src/MVCContrib/SimplyRestful/IRestfulActionResolver.cs: -------------------------------------------------------------------------------- 1 | using System.Web.Routing; 2 | 3 | namespace MvcContrib.SimplyRestful 4 | { 5 | public interface IRestfulActionResolver 6 | { 7 | RestfulAction ResolveAction(RequestContext context); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/MvcContrib.IncludeHandling/Configuration/ICssMinifySettings.cs: -------------------------------------------------------------------------------- 1 | using Yahoo.Yui.Compressor; 2 | 3 | namespace MvcContrib.IncludeHandling.Configuration 4 | { 5 | public interface ICssMinifySettings 6 | { 7 | CssCompressionType CompressionType { get; } 8 | } 9 | } -------------------------------------------------------------------------------- /bin/rhinomocks/acknowledgements.txt: -------------------------------------------------------------------------------- 1 | Rhino Mocks is using Castle Dynamic Proxy (http://www.castleproject.org/dynamicproxy/index.html) to handle proxying the types it needs to mock. 2 | The Dynamic Proxy project has been invaluable resource and made creating Rhino Mocks possible. -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.PortableArea/LoginPortableArea/Login/Models/LoginInput.cs: -------------------------------------------------------------------------------- 1 | namespace LoginPortableArea.Login.Models 2 | { 3 | public class LoginInput 4 | { 5 | public string Username { get; set; } 6 | 7 | public string Password { get; set; } 8 | } 9 | } -------------------------------------------------------------------------------- /src/MVCContrib.UnitTests/IoC/INestedDependency.cs: -------------------------------------------------------------------------------- 1 | namespace MvcContrib.UnitTests.IoC 2 | { 3 | public interface INestedDependency 4 | { 5 | IDependency Dependency 6 | { 7 | get; 8 | set; 9 | } 10 | 11 | } 12 | } -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.InputBuilders/Content/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mvccontrib/MvcContrib-2/HEAD/src/Samples/MvcContrib.Samples.InputBuilders/Content/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.SubControllers/SubControllers.4.0.resharper: -------------------------------------------------------------------------------- 1 | 2 | 3 | JetBrains.Annotations 4 | JetBrains.Annotations 5 | 6 | -------------------------------------------------------------------------------- /src/MVCContrib.gpState: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /src/MVCContrib/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/MvcContrib.IncludeHandling/Configuration/IJsMinifySettings.cs: -------------------------------------------------------------------------------- 1 | namespace MvcContrib.IncludeHandling.Configuration 2 | { 3 | public interface IJsMinifySettings 4 | { 5 | bool Obfuscate { get; } 6 | bool PreserveSemiColons { get; } 7 | bool DisableOptimizations { get; } 8 | } 9 | } -------------------------------------------------------------------------------- /src/MVCContrib.UnitTests/UI/Grid/Person.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace MvcContrib.UnitTests.UI.Grid 4 | { 5 | public class Person 6 | { 7 | public string Name { get; set; } 8 | 9 | public DateTime DateOfBirth { get; set; } 10 | 11 | public int Id { get; set; } 12 | } 13 | } -------------------------------------------------------------------------------- /src/MVCContrib/HttpHeaders.cs: -------------------------------------------------------------------------------- 1 | namespace MvcContrib 2 | { 3 | public static class HttpHeaders 4 | { 5 | public const string AcceptEncoding = "Accept-Encoding"; 6 | public const string ContentEncoding = "Content-Encoding"; 7 | public const string ContentLength = "Content-Length"; 8 | } 9 | } -------------------------------------------------------------------------------- /src/MvcContrib.FluentHtml/Behaviors/ISupportsMaxLength.cs: -------------------------------------------------------------------------------- 1 | namespace MvcContrib.FluentHtml.Behaviors 2 | { 3 | /// 4 | /// Marker interface indicating that a particular element supports the maxlength HTML attribute. 5 | /// 6 | public interface ISupportsMaxLength { } 7 | } -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.SubControllers/Website/Views/Right/Right.ascx: -------------------------------------------------------------------------------- 1 | <%@ Import Namespace="MvcContrib"%> 2 | <%@ Control Language="C#" AutoEventWireup="true" 3 | Inherits="System.Web.Mvc.ViewUserControl" %> 4 |
5 | <%=ViewData["text"] %> 6 |
-------------------------------------------------------------------------------- /src/MvcContrib.FluentHtml/Behaviors/IMemberBehavior.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using MvcContrib.FluentHtml.Elements; 3 | 4 | namespace MvcContrib.FluentHtml.Behaviors 5 | { 6 | [Obsolete("Use IBehavior instead.")] 7 | public interface IMemberBehavior : IBehavior { } 8 | } -------------------------------------------------------------------------------- /src/MvcContrib.TestHelper/MvcContrib.TestHelper/Ui/IInputTester.cs: -------------------------------------------------------------------------------- 1 | namespace MvcContrib.TestHelper.Ui 2 | { 3 | public interface IInputTester 4 | { 5 | void SetInput(IBrowserDriver browserDriver); 6 | void AssertInputValueMatches(IBrowserDriver browserDriver); 7 | } 8 | } -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.IoC.Spring/Views/Shared/Site.Master.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Web; 3 | using System.Web.Mvc; 4 | 5 | namespace MvcContrib.Samples.IoC.Views.Layouts 6 | { 7 | public partial class Site : System.Web.Mvc.ViewMasterPage 8 | { 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/MVCContrib/UI/InputBuilder/Conventions/PropertyName/IPropertyViewModelNameConvention.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | 3 | namespace MvcContrib.UI.InputBuilder.Conventions 4 | { 5 | public interface IPropertyViewModelNameConvention 6 | { 7 | string PropertyName(PropertyInfo propertyInfo); 8 | } 9 | } -------------------------------------------------------------------------------- /src/MVCContrib.UnitTests/FluentHtml/Fakes/FakeChildModel.cs: -------------------------------------------------------------------------------- 1 | namespace MvcContrib.UnitTests.FluentHtml.Fakes 2 | { 3 | public class FakeChildModel 4 | { 5 | public string FirstName { get; set; } 6 | public string LastName { get; set; } 7 | public decimal Balance { get; set; } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/MVCContrib/SimplyRestful/RestfulAction.cs: -------------------------------------------------------------------------------- 1 | namespace MvcContrib.SimplyRestful 2 | { 3 | public enum RestfulAction 4 | { 5 | None = 16384, 6 | Show = 1, 7 | Create = 2, 8 | Update = 4, 9 | Destroy = 8, 10 | Index = 16, 11 | New = 32, 12 | Edit = 64, 13 | Delete = 128 14 | } 15 | } -------------------------------------------------------------------------------- /src/MVCContrib/UI/InputBuilder/Views/InputBuilders/ArrayAddButton.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Title="" Language="C#" Inherits="System.Web.Mvc.ViewPage>>" %> 2 | <%@ Import Namespace="MvcContrib.UI.InputBuilder.Views"%> 3 | -------------------------------------------------------------------------------- /src/MVCContrib/UI/InputBuilder/Views/InputBuilders/HiddenField.Master: -------------------------------------------------------------------------------- 1 | <%@ Master Language="C#" Inherits="System.Web.Mvc.ViewMasterPage" %> 2 | 3 | 4 | -------------------------------------------------------------------------------- /src/MvcContrib.IncludeHandling/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | 3 | [assembly : AssemblyTitle("MvcContrib.IncludeHandling")] 4 | [assembly : 5 | AssemblyDescription( 6 | "A set of components for combining, minifying, compressing, and then caching the response of, CSS/JS includes.")] -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.PortableArea/PortableAreaSpike/Services/UserRepository.cs: -------------------------------------------------------------------------------- 1 | namespace PortableAreaSpike 2 | { 3 | public class UserRepository : IUserRepository 4 | { 5 | public User GetByUsername(string username) 6 | { 7 | return new User {Username = username}; 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /src/MVCContrib.UnitTests/UI/Html/Person.cs: -------------------------------------------------------------------------------- 1 | namespace MvcContrib.UnitTests.UI.Html 2 | { 3 | public class Person 4 | { 5 | public string Name { get; set; } 6 | public int Id { get; set; } 7 | 8 | public Person(string name, int id) 9 | { 10 | Name = name; 11 | Id = id; 12 | } 13 | } 14 | } -------------------------------------------------------------------------------- /src/MVCContrib/UI/InputBuilder/Views/DisplayPartial.cs: -------------------------------------------------------------------------------- 1 | namespace MvcContrib.UI.InputBuilder.Views 2 | { 3 | public class DisplayPartial 4 | { 5 | public const string Label = "DisplayLabel"; 6 | public const string Inline = "DisplayInline"; 7 | public const string Paragraph = "DisplayParagraph"; 8 | } 9 | } -------------------------------------------------------------------------------- /src/MVCContrib/UI/InputBuilder/Views/InputBuilders/ArrayRemoveButton.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Title="" Language="C#" Inherits="System.Web.Mvc.ViewPage>>" %> 2 | <%@ Import Namespace="MvcContrib.UI.InputBuilder.Views"%> 3 | -------------------------------------------------------------------------------- /src/MVCContrib/UI/InputBuilder/Views/InputBuilders/DisplayParagraph.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Title="" Language="C#" MasterPageFile="Display.Master" 2 | Inherits="System.Web.Mvc.ViewPage" %> 3 | <%@ Import Namespace="MvcContrib.UI.InputBuilder.Views"%> 4 | <%@ Import Namespace="MvcContrib.UI.InputBuilder"%> -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.UI/Models/Role.cs: -------------------------------------------------------------------------------- 1 | namespace MvcContrib.Samples.UI.Models 2 | { 3 | public class Role 4 | { 5 | public int Id { get; set; } 6 | public string Name { get; set; } 7 | 8 | public Role(int id, string name) 9 | { 10 | Id = id; 11 | Name = name; 12 | } 13 | } 14 | } -------------------------------------------------------------------------------- /src/MVCContrib/Services/IEmailTemplateService.cs: -------------------------------------------------------------------------------- 1 | using System.Net.Mail; 2 | using System.Web.Mvc; 3 | 4 | namespace MvcContrib.Services 5 | { 6 | public interface IEmailTemplateService 7 | { 8 | MailMessage RenderMessage(ControllerContext controllerContext, string viewName); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.SubControllers/Website/Views/Home/About.aspx.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.Mvc; 6 | 7 | namespace Website.Views.Home 8 | { 9 | public partial class About : ViewPage 10 | { 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.SubControllers/Website/Views/Home/Index.aspx.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.Mvc; 6 | 7 | namespace Website.Views.Home 8 | { 9 | public partial class Index : ViewPage 10 | { 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.UI/Default.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="MvcContrib.Samples.UI._Default" %> 2 | 3 | <%-- Please do not delete this file. It is used to ensure that ASP.NET MVC is activated by IIS when a user makes a "/" request to the server. --%> 4 | -------------------------------------------------------------------------------- /src/MvcContrib.FluentHtml/Expressions/ExpressionNameVisitorResult.cs: -------------------------------------------------------------------------------- 1 | using System.Linq.Expressions; 2 | 3 | namespace MvcContrib.FluentHtml.Expressions 4 | { 5 | public class ExpressionNameVisitorResult 6 | { 7 | public Expression NextExpression { get; set; } 8 | public string Name { get; set; } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.PortableArea/LoginPortableArea/Login/Models/ForgotPasswordInput.cs: -------------------------------------------------------------------------------- 1 | using System.ComponentModel.DataAnnotations; 2 | 3 | namespace LoginPortableArea.Login.Controllers 4 | { 5 | public class ForgotPasswordInput 6 | { 7 | [Required] 8 | public string Username { get; set; } 9 | } 10 | } -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.SubControllers/Website/Default.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Website._Default" %> 2 | 3 | <%-- Please do not delete this file. It is used to ensure that ASP.NET MVC is activated by IIS when a user makes a "/" request to the server. --%> 4 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.SubControllers/Website/Views/Account/Login.aspx.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.Mvc; 6 | 7 | namespace Website.Views.Account 8 | { 9 | public partial class Login : ViewPage 10 | { 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.UI/MvcContrib.Samples.UI.gpState: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.UI/Views/Grid/ViewPersonPartial.ascx: -------------------------------------------------------------------------------- 1 | <%@ Import Namespace="MvcContrib.Samples.UI.Models"%> 2 | <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %> 3 | 4 | <%= Html.ActionLink("View Person", "Show", new { id = Model.Id })%> 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.IncludeHandling/MvcContrib.Samples.IncludeHandling/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Reflection; 3 | using System.Runtime.InteropServices; 4 | 5 | [assembly: ComVisible(false)] 6 | [assembly: AssemblyProduct("MvcContrib.IncludeHandling")] 7 | [assembly: CLSCompliant(false)] 8 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.IoC/Views/Home/About.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> 2 | 3 | 4 | 5 |

Todo: Company information

6 | 7 |
-------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.SubControllers/Website/Views/Account/Register.aspx.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.Mvc; 6 | 7 | namespace Website.Views.Account 8 | { 9 | public partial class Register : ViewPage 10 | { 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.SubControllers/Website/Views/FormSubmit/Posted.ascx: -------------------------------------------------------------------------------- 1 | <%@ Import Namespace="MvcContrib" %> 2 | <%@ Control Language="C#" AutoEventWireup="true" Inherits="System.Web.Mvc.ViewUserControl" %> 3 |
4 |

Form posted: "<%=ViewData["sometextbox"] %>".

5 |
6 | -------------------------------------------------------------------------------- /src/MVCContrib/PortableAreas/IApplicationBus.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | namespace MvcContrib.PortableAreas 5 | { 6 | public interface IApplicationBus:IList 7 | { 8 | void Send(IEventMessage eventMessage); 9 | void SetMessageHandlerFactory(IMessageHandlerFactory factory); 10 | } 11 | } -------------------------------------------------------------------------------- /src/MVCContrib/UI/InputBuilder/Conventions/Type/ITypeViewModelFactory.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using MvcContrib.UI.InputBuilder.Views; 3 | 4 | namespace MvcContrib.UI.InputBuilder.InputSpecification 5 | { 6 | public interface ITypeViewModelFactory { 7 | bool CanHandle(Type type); 8 | TypeViewModel Create(Type type); 9 | } 10 | } -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.InputBuilders/Default.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="MvcContrib.UI.InputBuilder._Default" %> 2 | 3 | <%-- Please do not delete this file. It is used to ensure that ASP.NET MVC is activated by IIS when a user makes a "/" request to the server. --%> 4 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.IoC.Spring/Views/Home/About.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> 2 | 3 | 4 | 5 |

Todo: Company information

6 | 7 |
-------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.SubControllers/Website/Views/Left/Left.ascx: -------------------------------------------------------------------------------- 1 | <%@ Import Namespace="MvcContrib"%> 2 | <%@ Control Language="C#" AutoEventWireup="true" 3 | Inherits="System.Web.Mvc.ViewUserControl" %> 4 |
5 | <%=ViewData["text"] %> 6 | <% ViewData.Get("right").Invoke(); %> 7 |
-------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.SubControllers/Website/Views/Shared/Error.aspx.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.Mvc; 6 | 7 | namespace Website.Views.Shared 8 | { 9 | public partial class Error : ViewPage 10 | { 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/MVCContrib/UI/InputBuilder/ViewEngine/RenderInputBuilderException.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace MvcContrib.UI.InputBuilder.InputSpecification 4 | { 5 | public class RenderInputBuilderException : Exception 6 | { 7 | public RenderInputBuilderException(string message, Exception innerException) : base(message, innerException) {} 8 | } 9 | } -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.IoC/Views/Home/Index.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> 2 | 3 | 4 | 5 |

Welcome to my ASP.NET MVC Application!

6 | 7 |
8 | 9 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.SubControllers/Website/Views/Account/ChangePassword.aspx.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.Mvc; 6 | 7 | namespace Website.Views.Account 8 | { 9 | public partial class ChangePassword : ViewPage 10 | { 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.SubControllers/Website/Views/Shared/Site.Master.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.Mvc; 6 | 7 | namespace Website.Views.Shared 8 | { 9 | public partial class Site : System.Web.Mvc.ViewMasterPage 10 | { 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.SubControllers/Website/Controllers/SubControllers/RightController.cs: -------------------------------------------------------------------------------- 1 | using MvcContrib; 2 | 3 | namespace Website.Controllers.SubControllers 4 | { 5 | public class RightController : SubController 6 | { 7 | public string Right(string stringToDisplay) 8 | { 9 | return stringToDisplay; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.IncludeHandling/MvcContrib.Samples.IncludeHandling/Default.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Demo.Site._Default" %> 2 | 3 | <%-- Please do not delete this file. It is used to ensure that ASP.NET MVC is activated by IIS when a user makes a "/" request to the server. --%> 4 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.InputBuilders/Views/Shared/YesNoBoolean.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Title="" Language="C#" 2 | Inherits="System.Web.Mvc.ViewPage>" %> 3 | 4 | 5 | <%=(bool) Model.Value ? "Yes" : "No" %> 6 | 7 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.IoC.Spring/Views/Home/Index.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> 2 | 3 | 4 | 5 |

Welcome to my ASP.NET MVC Application!

6 | 7 |
8 | 9 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.SubControllers/Website/Views/Account/ChangePasswordSuccess.aspx.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.Mvc; 6 | 7 | namespace Website.Views.Account 8 | { 9 | public partial class ChangePasswordSuccess : ViewPage 10 | { 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.SubControllers/Website/Views/FirstLevel/FirstLevel.ascx: -------------------------------------------------------------------------------- 1 | <%@ Import Namespace="MvcContrib"%> 2 | <%@ Control Language="C#" AutoEventWireup="true" 3 | Inherits="System.Web.Mvc.ViewUserControl" %> 4 |
5 | <%=ViewData["text"] %> 6 | <% ViewData.Get("secondLevel").Invoke(); %> 7 |
-------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.UI/Views/FluentHtml/EditParent.ascx: -------------------------------------------------------------------------------- 1 | <%@ Control Language="C#" Inherits="MvcContrib.FluentHtml.ModelViewUserControl" %> 2 | <%@ Import Namespace="MvcContrib.FluentHtml"%> 3 | <%@ Import Namespace="MvcContrib.Samples.UI.Models"%> 4 | 5 |
6 | <%=this.TextBox(x => x.Name).Label(ViewData["label"].ToString())%> 7 |
-------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.InputBuilders/Views/InputBuilders/YesNoBoolean.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Title="" Language="C#" 2 | Inherits="System.Web.Mvc.ViewPage>" %> 3 | 4 | 5 | <%=(bool) Model.Value ? "Yes" : "No" %> 6 | 7 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.UI/Views/FluentHtml/ViewParent.ascx: -------------------------------------------------------------------------------- 1 | <%@ Control Language="C#" Inherits="MvcContrib.FluentHtml.ModelViewUserControl" %> 2 | <%@ Import Namespace="MvcContrib.FluentHtml"%> 3 | <%@ Import Namespace="MvcContrib.Samples.UI.Models"%> 4 | 5 |
6 | <%=this.Literal(x => x.Name).Label(ViewData["label"].ToString()) %> 7 |
-------------------------------------------------------------------------------- /src/MVCContrib.UnitTests/FluentHtml/ModelViewPageTests.cs: -------------------------------------------------------------------------------- 1 | using MvcContrib.FluentHtml; 2 | using MvcContrib.UnitTests.FluentHtml.Fakes; 3 | using NUnit.Framework; 4 | 5 | namespace MvcContrib.UnitTests.FluentHtml 6 | { 7 | [TestFixture] 8 | public class ModelViewPageTests : ViewModelContainerTestBase, FakeModel> 9 | { 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.IoC/Default.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" %> 2 | 7 | -------------------------------------------------------------------------------- /src/MvcContrib.IncludeHandling/Configuration/IIncludeHandlingSettings.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace MvcContrib.IncludeHandling.Configuration 4 | { 5 | public interface IIncludeHandlingSettings 6 | { 7 | CssTypeElement Css { get; } 8 | JsTypeElement Js { get; } 9 | IDictionary Types { get; } 10 | } 11 | } -------------------------------------------------------------------------------- /src/MvcContrib.TestHelper/MvcContrib.TestHelper/Ui/IMultipleInputTesterFactory.cs: -------------------------------------------------------------------------------- 1 | using System.Linq.Expressions; 2 | using System.Reflection; 3 | 4 | namespace MvcContrib.TestHelper.Ui 5 | { 6 | public interface IMultipleInputTesterFactory 7 | { 8 | bool CanHandle(PropertyInfo info); 9 | IInputTester Create(LambdaExpression expression, string[] text); 10 | } 11 | } -------------------------------------------------------------------------------- /src/Samples/IocControllerFactory/Website/Default.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" %> 2 | 7 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.IoC.Spring/Default.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" %> 2 | 7 | -------------------------------------------------------------------------------- /src/MVCContrib.UnitTests/IoC/NestedDependency.cs: -------------------------------------------------------------------------------- 1 | namespace MvcContrib.UnitTests.IoC 2 | { 3 | public class NestedDependency : INestedDependency, IDependency 4 | { 5 | public NestedDependency(IDependency dependency) 6 | { 7 | Dependency = dependency; 8 | } 9 | 10 | public IDependency Dependency { get; set; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/MVCContrib/Interfaces/IDependencyResolver.cs: -------------------------------------------------------------------------------- 1 | namespace MvcContrib.Interfaces 2 | { 3 | using System; 4 | 5 | public interface IDependencyResolver 6 | { 7 | Interface GetImplementationOf(); 8 | Interface GetImplementationOf(Type type); 9 | object GetImplementationOf(Type type); 10 | void DisposeImplementation(object instance); 11 | } 12 | } -------------------------------------------------------------------------------- /src/MvcContrib.TestHelper/MvcContrib.TestHelper/Ui/IInputTesterFactory.cs: -------------------------------------------------------------------------------- 1 | using System.Linq.Expressions; 2 | using System.Reflection; 3 | 4 | namespace MvcContrib.TestHelper.Ui 5 | { 6 | public interface IInputTesterFactory 7 | { 8 | bool CanHandle(PropertyInfo info); 9 | IInputTester Create(LambdaExpression expression, string text); 10 | } 11 | } -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.PortableArea/LoginPortableArea/Login/Messages/ForgotPasswordResult.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using MvcContrib.PortableAreas; 3 | 4 | namespace LoginPortableArea.Login.Controllers 5 | { 6 | public class ForgotPasswordResult : ICommandResult 7 | { 8 | public bool Success { get; set; } 9 | 10 | public string Message { get; set; } 11 | } 12 | } -------------------------------------------------------------------------------- /src/MVCContrib/UI/InputBuilder/Attributes/DisplayOrderAttribute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace MvcContrib.UI.InputBuilder.Attributes 4 | { 5 | public class DisplayOrderAttribute : Attribute 6 | { 7 | public DisplayOrderAttribute(int order) 8 | { 9 | Order = order; 10 | } 11 | public int Order { get; set; } 12 | } 13 | } -------------------------------------------------------------------------------- /src/MVCContrib/UI/InputBuilder/Conventions/PropertyName/DefaultNameConvention.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | 3 | namespace MvcContrib.UI.InputBuilder.Conventions 4 | { 5 | public class DefaultNameConvention : IPropertyViewModelNameConvention 6 | { 7 | public virtual string PropertyName(PropertyInfo propertyInfo) 8 | { 9 | return propertyInfo.Name; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.PortableArea/LoginPortableArea/Login/Views/Rss/Index.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Title="" Language="C#" Inherits="System.Web.Mvc.ViewPage< System.ServiceModel.Syndication.SyndicationFeed>" %> 2 | 3 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.UI/Models/PersonEditModel.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Web.Mvc; 3 | 4 | namespace MvcContrib.Samples.UI.Models 5 | { 6 | public class PersonEditModel 7 | { 8 | public Person Person; 9 | public IDictionary Genders; 10 | public IEnumerable Roles; 11 | public SelectList Companies; 12 | } 13 | } -------------------------------------------------------------------------------- /src/MVCContrib.UnitTests/FluentHtml/ModelMasterViewPageTests.cs: -------------------------------------------------------------------------------- 1 | using MvcContrib.FluentHtml; 2 | using MvcContrib.UnitTests.FluentHtml.Fakes; 3 | using NUnit.Framework; 4 | 5 | namespace MvcContrib.UnitTests.FluentHtml 6 | { 7 | [TestFixture] 8 | public class ModelViewMasterPageTests : ViewModelContainerTestBase, FakeModel> 9 | { 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/MvcContrib.FluentHtml/IViewModelContainer.cs: -------------------------------------------------------------------------------- 1 | using System.Web.Mvc; 2 | using MvcContrib.FluentHtml.Behaviors; 3 | 4 | namespace MvcContrib.FluentHtml 5 | { 6 | public interface IViewModelContainer : IViewDataContainer, IBehaviorsContainer where T : class 7 | { 8 | T ViewModel { get; } 9 | string HtmlNamePrefix { get; set; } 10 | HtmlHelper Html { get; } 11 | } 12 | } -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.PortableArea/LoginPortableArea/Login/Messages/LoginResult.cs: -------------------------------------------------------------------------------- 1 | using MvcContrib.PortableAreas; 2 | 3 | namespace LoginPortableArea.Login.Messages 4 | { 5 | public class LoginResult : ICommandResult 6 | { 7 | public bool Success { get; set; } 8 | 9 | public string Message { get; set; } 10 | 11 | public string Username { get; set; } 12 | } 13 | } -------------------------------------------------------------------------------- /src/MVCContrib.UnitTests/ConventionController/CustomActionResult.cs: -------------------------------------------------------------------------------- 1 | using System.Web.Mvc; 2 | 3 | namespace MvcContrib.UnitTests.ConventionController 4 | { 5 | public class CustomActionResult : ActionResult 6 | { 7 | public override void ExecuteResult(ControllerContext context) 8 | { 9 | ((TestController)context.Controller).CustomActionResultCalled = true; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /src/MVCContrib.UnitTests/FluentHtml/ModelViewUserControlPageTests.cs: -------------------------------------------------------------------------------- 1 | using MvcContrib.FluentHtml; 2 | using MvcContrib.UnitTests.FluentHtml.Fakes; 3 | using NUnit.Framework; 4 | 5 | namespace MvcContrib.UnitTests.FluentHtml 6 | { 7 | [TestFixture] 8 | public class ModelViewUserControlPageTests : ViewModelContainerTestBase, FakeModel> 9 | { 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.ConventionController/Views/Shared/Rescues/DivideByZeroException.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" 2 | Inherits="System.Web.Mvc.ViewPage" %> 3 | 4 | You fail at math rescue says: 5 | <%= Model.Exception.GetBaseException().Message %> 6 | 7 | -------------------------------------------------------------------------------- /src/MVCContrib.UnitTests/ConventionController/TestFilter.cs: -------------------------------------------------------------------------------- 1 | using System.Web.Mvc; 2 | 3 | namespace MvcContrib.UnitTests.ConventionController 4 | { 5 | public class TestFilter : ActionFilterAttribute 6 | { 7 | public override void OnActionExecuting(ActionExecutingContext filterContext) 8 | { 9 | ((TestController)filterContext.Controller).BinderFilterOrdering += "Filter"; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /src/MVCContrib/UI/InputBuilder/Views/InputBuilders/Form.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Title="" Language="C#" Inherits="System.Web.Mvc.ViewPage" %> 2 | <%@ Import Namespace="MvcContrib.UI.InputBuilder.Views"%> 3 | <%@ Import Namespace="System.Web.Mvc.Html"%> 4 | <%=Html.ValidationSummary() %> 5 | <% using(Html.BeginForm()) { %> 6 | <% Html.InputFields( Model );%> 7 | <%=Html.InputButtons( ) %> 8 | <% }%> -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.SubControllers/Website/Views/FormSubmit/FormSubmit.ascx: -------------------------------------------------------------------------------- 1 | <%@ Import Namespace="MvcContrib" %> 2 | <%@ Control Language="C#" AutoEventWireup="true" Inherits="System.Web.Mvc.ViewUserControl" %> 3 |
4 | <%using (Html.BeginForm()) 5 | { %> 6 | <%=Html.TextBox("sometextbox") %> 7 | <%=Html.SubmitButton() %> 8 | <%} %> 9 |
10 | -------------------------------------------------------------------------------- /src/MVCContrib/UI/InputBuilder/Views/InputBuilders/MultilineText.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Title="" Language="C#" MasterPageFile="Field.Master" Inherits="System.Web.Mvc.ViewPage>" %> 2 | <%@ Import Namespace="MvcContrib.UI.InputBuilder.Views"%> 3 | <%=Html.TextArea(Model.Name,Model.Value.ToString(),new {rows=10}) %> 4 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.ConventionController/Models/Dimension.cs: -------------------------------------------------------------------------------- 1 | namespace MvcContrib.Samples.Models 2 | { 3 | public class Dimension 4 | { 5 | public UnitOfMeasure Units { get; set; } 6 | public double Length { get; set; } 7 | public double Width { get; set; } 8 | public double Height { get; set; } 9 | } 10 | 11 | public enum UnitOfMeasure 12 | { 13 | English, 14 | Metric 15 | } 16 | } -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.InputBuilders/Models/SampleDisplay.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using MvcContrib.UI.InputBuilder.Attributes; 3 | 4 | namespace Web.Models 5 | { 6 | public class SampleDisplay 7 | { 8 | public string Name { get; set; } 9 | [Label("Some timestamp")] public DateTime TimeStamp { get; set; } 10 | public string Html { get; set; } 11 | public bool IsNeeded { get; set; } 12 | } 13 | } -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.PortableArea/LoginPortableArea/Login/Controllers/RssController.cs: -------------------------------------------------------------------------------- 1 | using System.Web.Mvc; 2 | 3 | namespace LoginPortableArea.Login.Controllers 4 | { 5 | public class RssController : Controller 6 | { 7 | public ActionResult Index(string RssUrl) 8 | { 9 | return View(new SyndicationService().GetFeed(RssUrl, 10)); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /src/MVCContrib/UI/ASPXViewEngine/AutoTypeViewPage.cs: -------------------------------------------------------------------------------- 1 | using System.Web.Mvc; 2 | 3 | namespace MvcContrib.UI.ASPXViewEngine 4 | { 5 | public class AutoTypeViewPage : ViewPage where TViewData : class 6 | { 7 | protected override void SetViewData(ViewDataDictionary viewData) 8 | { 9 | base.SetViewData(AutoTypingHelper.PerformLooseTypecast(viewData)); 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.WindsorControllerFactory/Models/Service.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace MvcContrib.Samples.WindsorControllerFactory.Models 4 | { 5 | public interface IService 6 | { 7 | IList GetNumbers(); 8 | } 9 | 10 | public class Service : IService 11 | { 12 | public IList GetNumbers() 13 | { 14 | return new List { 1, 2, 3 }; 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /src/MVCContrib/UI/InputBuilder/DefaultTypeConventionsFactory.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using MvcContrib.UI.InputBuilder.InputSpecification; 3 | 4 | namespace MvcContrib.UI.InputBuilder 5 | { 6 | public class DefaultTypeConventionsFactory : List 7 | { 8 | public DefaultTypeConventionsFactory() 9 | { 10 | Add(new DefaultTypeViewModelFactoryConvention()); 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.ConventionController/Models/Address.cs: -------------------------------------------------------------------------------- 1 | namespace MvcContrib.Samples.Models 2 | { 3 | public class Address 4 | { 5 | public string Name { get; set; } 6 | public string StreetAddress { get; set; } 7 | public string City { get; set; } 8 | public string StateProvince { get; set; } 9 | public string ZipPostalCode { get; set; } 10 | public string Country { get; set; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.UnityControllerFactory/Models/Service.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace MvcContrib.Samples.UnityControllerFactory.Models 4 | { 5 | public interface IService 6 | { 7 | IList GetNumbers(); 8 | } 9 | 10 | public class Service : IService 11 | { 12 | public IList GetNumbers() 13 | { 14 | return new List {1, 2, 3, 4}; 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/MVCContrib/Routing/DebugRoute.cs: -------------------------------------------------------------------------------- 1 | using System.Web.Routing; 2 | 3 | namespace MvcContrib.Routing 4 | { 5 | public class DebugRoute : Route 6 | { 7 | private static DebugRoute singleton = new DebugRoute(); 8 | 9 | public static DebugRoute Singleton 10 | { 11 | get { return singleton; } 12 | } 13 | 14 | private DebugRoute() 15 | : base("{*catchall}", new DebugRouteHandler()) 16 | { } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/MVCContrib/UI/InputBuilder/Attributes/PartialViewAttribute.cs: -------------------------------------------------------------------------------- 1 | using System.ComponentModel.DataAnnotations; 2 | 3 | namespace MvcContrib.UI.InputBuilder.Attributes 4 | { 5 | public class PartialViewAttribute : UIHintAttribute 6 | { 7 | public PartialViewAttribute(string partialView) : base(partialView) 8 | { 9 | PartialView = partialView; 10 | } 11 | 12 | public string PartialView { get; private set; } 13 | } 14 | } -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.SubControllers/Website/Views/Home/About.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true" CodeBehind="About.aspx.cs" Inherits="Website.Views.Home.About" %> 2 | 3 | 4 |

About Us

5 |

6 | TODO: Put about content here. 7 |

8 |
9 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.SubControllers/Website/Views/Shared/Error.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true" CodeBehind="Error.aspx.cs" Inherits="Website.Views.Shared.Error" %> 2 | 3 |

4 | Sorry, an error occurred while processing your request. 5 |

6 |
7 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.UI/Models/PeopleGridModel.cs: -------------------------------------------------------------------------------- 1 | using MvcContrib.UI.Grid; 2 | 3 | namespace MvcContrib.Samples.UI.Models 4 | { 5 | public class PeopleGridModel : GridModel 6 | { 7 | public PeopleGridModel() 8 | { 9 | Column.For(x => x.Id).Named("Person ID"); 10 | Column.For(x => x.Name); 11 | Column.For(x => x.Gender); 12 | Column.For(x => x.DateOfBirth).Format("{0:d}"); 13 | } 14 | } 15 | } -------------------------------------------------------------------------------- /src/MVCContrib.UnitTests/FluentHtml/Fakes/FakeViewDataContainer.cs: -------------------------------------------------------------------------------- 1 | using System.Web.Mvc; 2 | 3 | namespace MvcContrib.UnitTests.FluentHtml.Fakes 4 | { 5 | public class FakeViewDataContainer : IViewDataContainer 6 | { 7 | private ViewDataDictionary viewData = new ViewDataDictionary(); 8 | 9 | public ViewDataDictionary ViewData 10 | { 11 | get { return viewData; } 12 | set { viewData = value; } 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/MVCContrib/PortableAreas/IMessageHandlerFactory.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace MvcContrib.PortableAreas 4 | { 5 | public interface IMessageHandlerFactory 6 | { 7 | IMessageHandler Create(Type type); 8 | } 9 | 10 | public class MessageHandlerFactory : IMessageHandlerFactory 11 | { 12 | public IMessageHandler Create(Type type) 13 | { 14 | return (IMessageHandler) Activator.CreateInstance(type); 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /src/MVCContrib/UI/ASPXViewEngine/AutoTypeViewUserControl.cs: -------------------------------------------------------------------------------- 1 | using System.Web.Mvc; 2 | 3 | namespace MvcContrib.UI.ASPXViewEngine 4 | { 5 | public class AutoTypeViewUserControl : ViewUserControl where TViewData : class 6 | { 7 | protected override void SetViewData(ViewDataDictionary viewData) 8 | { 9 | base.SetViewData(AutoTypingHelper.PerformLooseTypecast(viewData)); 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/MVCContrib/UI/InputBuilder/Views/InputBuilders/Guid.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Title="" Language="C#" Inherits="System.Web.Mvc.ViewPage>" %> 2 | <%@ Import Namespace="MvcContrib.UI.InputBuilder.Views"%> 3 | 4 | 5 | 6 | <%=Html.Hidden(Model.Name,Model.Value) %> 7 | -------------------------------------------------------------------------------- /src/MVCContrib/UI/InputBuilder/Views/InputBuilders/String.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Title="" Language="C#" MasterPageFile="Field.Master" Inherits="System.Web.Mvc.ViewPage>" %> 2 | <%@ Import Namespace="MvcContrib.UI.InputBuilder.Views"%> 3 | <%@ Import Namespace="System.Web.Mvc.Html"%> 4 | 5 | <%=Html.TextBox(Model.Name,Model.Value) %> 6 | 7 | -------------------------------------------------------------------------------- /src/MvcContrib.FluentHtml/Behaviors/IModelStateHandler.cs: -------------------------------------------------------------------------------- 1 | using System.Web.Mvc; 2 | using MvcContrib.FluentHtml.Elements; 3 | 4 | namespace MvcContrib.FluentHtml.Behaviors 5 | { 6 | /// 7 | /// Used internally by the ValidationBehavior to handle ModelState values for a particular element type. 8 | /// 9 | public interface IModelStateHandler 10 | { 11 | bool Handle(IElement element, ModelState state); 12 | } 13 | } -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.ConventionController/Views/Shared/Rescues/Error.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage" MasterPageFile="~/Views/Shared/Site.Master" %> 2 | <%@ Import Namespace="System.Web.Mvc" %> 3 | 4 | Whoops an error occured! 5 |

Error Message:

6 |

<%= ((HandleErrorInfo)Model).Exception.GetBaseException().Message %>

7 |
-------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.ConventionController/Views/Shipment/Track.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage>" MasterPageFile="~/Views/Shared/Site.Master" %> 2 | 3 | You are tracking packages:
4 | <% int i = 0; %> 5 | <% foreach( string trackingNumber in Model ) { %> 6 | <%= i++ %> <%= trackingNumber %>
7 | <% } %> 8 |
-------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.InputBuilders/Views/Shared/String.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Title="" Language="C#" MasterPageFile="~/Views/InputBuilders/Field.Master" 2 | Inherits="System.Web.Mvc.ViewPage>" %> 3 | <%@ Import Namespace="System.Web.Mvc.Html"%> 4 | 5 | <%=Html.TextBox(Model.Name,Model.Value) %> 6 | 7 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.PortableArea/LoginPortableArea/Login/Messages/ForgotPasswordInputMessage.cs: -------------------------------------------------------------------------------- 1 | using LoginPortableArea.Login.Controllers; 2 | using MvcContrib.PortableAreas; 3 | 4 | namespace LoginPortableArea.Login.Messages 5 | { 6 | public class ForgotPasswordInputMessage : ICommandMessage 7 | { 8 | public ForgotPasswordInput Input { get; set; } 9 | public ForgotPasswordResult Result { get; set; } 10 | } 11 | } -------------------------------------------------------------------------------- /src/MVCContrib/UI/InputBuilder/Views/InputBuilders/DisplayInline.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Title="" Language="C#" MasterPageFile="Display.Master" 2 | Inherits="System.Web.Mvc.ViewPage" %> 3 | <%@ Import Namespace="MvcContrib.UI.InputBuilder.Views"%> 4 | <%@ Import Namespace="MvcContrib.UI.InputBuilder"%> 5 | 6 | -------------------------------------------------------------------------------- /src/MvcContrib.IncludeHandling/Configuration/IIncludeTypeSettings.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | namespace MvcContrib.IncludeHandling.Configuration 5 | { 6 | public interface IIncludeTypeSettings 7 | { 8 | int LineBreakAt { get; } 9 | string Path { get; } 10 | IList CompressionOrder { get; } 11 | bool Minify { get; } 12 | bool Compress { get; } 13 | TimeSpan? CacheFor { get; } 14 | } 15 | } -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.SubControllers/Website/Controllers/SubControllers/FirstLevelSubController.cs: -------------------------------------------------------------------------------- 1 | using System.Web.Mvc; 2 | using MvcContrib; 3 | 4 | namespace Website.Controllers.SubControllers 5 | { 6 | public class FirstLevelSubController : SubController 7 | { 8 | public ViewResult FirstLevel(SecondLevelSubController secondLevel) 9 | { 10 | ViewData["text"] = "I am a first level controller"; 11 | return View(); 12 | } 13 | } 14 | } -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.UI/Views/Home/SecurePage1.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> 2 | 3 | 4 | Secure Page 1 5 | 6 | 7 | 8 | 9 |

Secure Page 1

10 | 11 |
12 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.UI/Views/Home/SecurePage2.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> 2 | 3 | 4 | Secure Page 2 5 | 6 | 7 | 8 | 9 |

Secure Page 2

10 | 11 |
12 | -------------------------------------------------------------------------------- /src/MVCContrib/UI/InputBuilder/Attributes/LabelAttribute.cs: -------------------------------------------------------------------------------- 1 | using System.ComponentModel.DataAnnotations; 2 | 3 | namespace MvcContrib.UI.InputBuilder.Attributes 4 | { 5 | public class LabelAttribute : ValidationAttribute 6 | { 7 | public LabelAttribute(string label) 8 | { 9 | Label = label; 10 | } 11 | 12 | public string Label { get; private set; } 13 | 14 | public override bool IsValid(object value) 15 | { 16 | return true; 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /src/MVCContrib/UI/InputBuilder/Views/InputBuilders/Submit.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Title="" Language="C#" MasterPageFile="Field.Master" Inherits="System.Web.Mvc.ViewPage" %> 2 | <%@ Import Namespace="MvcContrib.UI.InputBuilder.Views"%> 3 | 4 |   5 | 6 | 7 | -------------------------------------------------------------------------------- /src/MvcContrib.IncludeHandling/IIncludeStorage.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace MvcContrib.IncludeHandling 4 | { 5 | public interface IIncludeStorage 6 | { 7 | void Store(Include include); 8 | string Store(IncludeCombination combination); 9 | IncludeCombination GetCombination(string key); 10 | IEnumerable GetAllIncludes(); 11 | IDictionary GetAllCombinations(); 12 | void Clear(); 13 | } 14 | } -------------------------------------------------------------------------------- /src/MvcContrib.TestHelper/MvcContrib.TestHelper/Ui/RowFilter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Linq.Expressions; 3 | 4 | namespace MvcContrib.TestHelper.Ui 5 | { 6 | public class RowFilter 7 | { 8 | public readonly Expression> Expression; 9 | public readonly string Value; 10 | 11 | public RowFilter(Expression> expression, string value) 12 | { 13 | Expression = expression; 14 | Value = value; 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.PortableArea/PortableAreaSpike/Controllers/HomeController.cs: -------------------------------------------------------------------------------- 1 | using System.Web.Mvc; 2 | 3 | namespace PortableAreaSpike.Controllers 4 | { 5 | [HandleError] 6 | public class HomeController : Controller 7 | { 8 | public ActionResult Index() 9 | { 10 | ViewData["Message"] = "Welcome to ASP.NET MVC!"; 11 | 12 | return View(); 13 | } 14 | 15 | public ActionResult About() 16 | { 17 | return View(); 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.UI/Views/Shared/LogOnUserControl.ascx: -------------------------------------------------------------------------------- 1 | <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %> 2 | <% 3 | if (Request.IsAuthenticated) { 4 | %> 5 | Welcome <%= Html.Encode(Page.User.Identity.Name) %>! 6 | [ <%= Html.ActionLink("Log Off", "LogOff", "Account") %> ] 7 | <% 8 | } 9 | else { 10 | %> 11 | [ <%= Html.ActionLink("Log On", "LogOn", "Account") %> ] 12 | <% 13 | } 14 | %> 15 | -------------------------------------------------------------------------------- /src/MVCContrib/PortableAreas/IEventMessage.cs: -------------------------------------------------------------------------------- 1 | namespace MvcContrib.PortableAreas 2 | { 3 | public interface IEventMessage {} 4 | 5 | public interface ICommandMessage : IEventMessage where TResult : ICommandResult 6 | { 7 | TResult Result { get; } 8 | } 9 | 10 | public interface ICommandResult 11 | { 12 | bool Success { get; set; } 13 | } 14 | 15 | public interface IQueryMessage : IEventMessage 16 | { 17 | TResult Result { get; } 18 | } 19 | } -------------------------------------------------------------------------------- /src/MVCContrib/UI/InputBuilder/Attributes/ExampleAttribute.cs: -------------------------------------------------------------------------------- 1 | using System.ComponentModel.DataAnnotations; 2 | 3 | namespace MvcContrib.UI.InputBuilder.Attributes 4 | { 5 | public class ExampleAttribute : ValidationAttribute 6 | { 7 | public ExampleAttribute(string example) 8 | { 9 | Example = example; 10 | } 11 | 12 | public string Example { get; set; } 13 | 14 | public override bool IsValid(object value) 15 | { 16 | return true; 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.InputBuilders/Views/Shared/LogOnUserControl.ascx: -------------------------------------------------------------------------------- 1 | <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %> 2 | <% 3 | if (Request.IsAuthenticated) { 4 | %> 5 | Welcome <%= Html.Encode(Page.User.Identity.Name) %>! 6 | [ <%= Html.ActionLink("Log Off", "LogOff", "Account") %> ] 7 | <% 8 | } 9 | else { 10 | %> 11 | [ <%= Html.ActionLink("Log On", "LogOn", "Account") %> ] 12 | <% 13 | } 14 | %> 15 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.UI/Views/Home/About.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> 2 | 3 | 4 | About Us 5 | 6 | 7 | 8 |

About

9 |

10 | Put content here. 11 |

12 |
13 | -------------------------------------------------------------------------------- /src/MvcContrib.FluentHtml/Behaviors/IBehaviorsContainer.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace MvcContrib.FluentHtml.Behaviors 4 | { 5 | /// 6 | /// Contract for any class implementing a list of custom behaviors. 7 | /// 8 | public interface IBehaviorsContainer 9 | { 10 | /// 11 | /// The collection of objects. 12 | /// 13 | IEnumerable Behaviors { get; } 14 | } 15 | } -------------------------------------------------------------------------------- /src/MvcContrib.TestHelper/MvcContrib.TestHelper/Ui/Helper/EnumerableExtensions.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | namespace MvcContrib.TestHelper.Ui 5 | { 6 | public static class EnumerableExtensions 7 | { 8 | public static void ForEach(this IEnumerable items, Action action) 9 | { 10 | foreach (T item in items) 11 | { 12 | action(item); 13 | } 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.InputBuilders/Views/Home/About.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> 2 | 3 | 4 | About Us 5 | 6 | 7 | 8 |

About

9 |

10 | Put content here. 11 |

12 |
13 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.PortableArea/LoginPortableArea/Login/Messages/LoginInputMessage.cs: -------------------------------------------------------------------------------- 1 | using System.ComponentModel.DataAnnotations; 2 | using LoginPortableArea.Login.Models; 3 | using MvcContrib.PortableAreas; 4 | 5 | namespace LoginPortableArea.Login.Messages 6 | { 7 | public class LoginInputMessage : ICommandMessage 8 | { 9 | [Required] 10 | public LoginResult Result { get; set; } 11 | [Required] 12 | public LoginInput Input { get; set; } 13 | } 14 | } -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.PortableArea/LoginPortableArea/Login/Messages/RegistrationMessage.cs: -------------------------------------------------------------------------------- 1 | using MvcContrib.PortableAreas; 2 | 3 | namespace LoginPortableArea.Login.Messages 4 | { 5 | public class RegistrationMessage : IEventMessage 6 | { 7 | public RegistrationMessage(string message) 8 | { 9 | _message = message; 10 | } 11 | 12 | private readonly string _message; 13 | 14 | public override string ToString() 15 | { 16 | return _message; 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /src/Samples/IocControllerFactory/Website/Views/Home/About.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" 2 | AutoEventWireup="true" Inherits="System.Web.Mvc.ViewPage" %> 3 | 4 | 5 |

6 | About MvcContrib Project

7 |

8 | Find the project at http://mvccontrib.org 9 |

10 |
11 | -------------------------------------------------------------------------------- /src/MVCContrib/Routing/DebugRouteHandler.cs: -------------------------------------------------------------------------------- 1 | using System.Web.Routing; 2 | using System.Web; 3 | 4 | namespace MvcContrib.Routing 5 | { 6 | /// 7 | /// Route handler that ensures all requestes are routed to the DebugHttpHandler. 8 | /// 9 | public class DebugRouteHandler : IRouteHandler 10 | { 11 | public IHttpHandler GetHttpHandler(RequestContext requestContext) 12 | { 13 | return new DebugHttpHandler { RequestContext = requestContext }; 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/MvcContrib.FluentHtml/Elements/IMemberElement.cs: -------------------------------------------------------------------------------- 1 | using System.Linq.Expressions; 2 | 3 | namespace MvcContrib.FluentHtml.Elements 4 | { 5 | /// 6 | /// Interface for elements that are associated with a model member. 7 | /// 8 | public interface IMemberElement : IElement 9 | { 10 | /// 11 | /// Expression indicating the view model member associated with the element. 12 | /// 13 | MemberExpression ForMember { get; } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.PortableArea/PortableAreaSpike/Services/MockAuthenticationService.cs: -------------------------------------------------------------------------------- 1 | namespace PortableAreaSpike 2 | { 3 | public class MockAuthenticationService : IAuthenticationService 4 | { 5 | private readonly bool _b; 6 | 7 | public MockAuthenticationService(bool b) 8 | { 9 | _b = b; 10 | } 11 | 12 | public bool IsValidLogin(string username, string password) 13 | { 14 | return username.Equals("admin") && password.Equals("password"); 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.SubControllers/Website/Default.aspx.cs: -------------------------------------------------------------------------------- 1 | using System.Web; 2 | using System.Web.Mvc; 3 | using System.Web.UI; 4 | 5 | namespace Website 6 | { 7 | public partial class _Default : Page 8 | { 9 | public void Page_Load(object sender, System.EventArgs e) 10 | { 11 | HttpContext.Current.RewritePath(Request.ApplicationPath); 12 | IHttpHandler httpHandler = new MvcHttpHandler(); 13 | httpHandler.ProcessRequest(HttpContext.Current); 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.UI/Default.aspx.cs: -------------------------------------------------------------------------------- 1 | using System.Web; 2 | using System.Web.Mvc; 3 | using System.Web.UI; 4 | 5 | namespace MvcContrib.Samples.UI 6 | { 7 | public partial class _Default : Page 8 | { 9 | public void Page_Load(object sender, System.EventArgs e) 10 | { 11 | HttpContext.Current.RewritePath(Request.ApplicationPath, false); 12 | IHttpHandler httpHandler = new MvcHttpHandler(); 13 | httpHandler.ProcessRequest(HttpContext.Current); 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/MVCContrib/UI/InputBuilder/Views/InputBuilders/Boolean.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Title="" Language="C#" inherits="System.Web.Mvc.ViewPage>" %> 2 | <%@ Import Namespace="MvcContrib.UI.InputBuilder.Views"%> 3 | 4 | 5 | 6 | <%=Html.CheckBox(Model.Name,(bool)Model.Value) %> 7 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.UI/Views/SampleFluentHtmlViewPage.cs: -------------------------------------------------------------------------------- 1 | using MvcContrib.FluentHtml; 2 | 3 | namespace MvcContrib.Samples.UI.Views 4 | { 5 | /// 6 | /// This is a sample ModelViewPage implementation that illustrates how to add Behaviors. 7 | /// 8 | public class SampleFluentHtmlViewPage : ModelViewPage where T : class 9 | { 10 | public SampleFluentHtmlViewPage() : base(new MaxLengthBehavior(), new RequiredBehavior()) 11 | { 12 | 13 | } 14 | } 15 | } -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.IoC.Spring/Controllers/HomeController.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Web; 3 | using System.Web.Mvc; 4 | 5 | namespace MvcContrib.Samples.IoC.Controllers 6 | { 7 | public class HomeController : Controller 8 | { 9 | public ActionResult Index() 10 | { 11 | return View("Index"); 12 | } 13 | 14 | 15 | public ActionResult About() 16 | { 17 | return View("About"); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.IoC.Spring/objects.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.PortableArea/PortableAreaSpike/Default.aspx.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.UI; 6 | using System.Web.UI.WebControls; 7 | 8 | namespace PortableAreaSpike 9 | { 10 | public partial class Default : System.Web.UI.Page 11 | { 12 | protected void Page_Load(object sender, EventArgs e) 13 | { 14 | Response.Redirect("~/home"); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/MVCContrib.UnitTests/FluentHtml/Views/TestableViewPage.cs: -------------------------------------------------------------------------------- 1 | using System.Web.Mvc; 2 | using MvcContrib.FluentHtml; 3 | 4 | namespace MvcContrib.UnitTests.FluentHtml.Views 5 | { 6 | public class TestableViewPage : ModelViewPage where T : class 7 | { 8 | public TestableViewPage(ViewContext viewContext) 9 | { 10 | ViewContext = viewContext; 11 | } 12 | 13 | public new T ViewModel 14 | { 15 | get { return ViewData.Model; } 16 | set { ViewData.Model = value; } 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.SubControllers/Website/Views/Account/ChangePasswordSuccess.aspx: -------------------------------------------------------------------------------- 1 | <%@Language="C#" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true" CodeBehind="ChangePasswordSuccess.aspx.cs" Inherits="Website.Views.Account.ChangePasswordSuccess" %> 2 | 3 | 4 |

Change Password

5 |

6 | Your password has been changed successfully. 7 |

8 |
9 | -------------------------------------------------------------------------------- /src/MvcContrib.FluentHtml/Behaviors/ISupportsAutoLabeling.cs: -------------------------------------------------------------------------------- 1 | namespace MvcContrib.FluentHtml.Behaviors 2 | { 3 | public interface ISupportsAutoLabeling 4 | { 5 | /// 6 | /// If no label before has been explicitly set, set the label before using the element name. 7 | /// 8 | void SetAutoLabel(); 9 | 10 | /// 11 | /// If no label after has been explicitly set, set the label after using the element name. 12 | /// 13 | void SetAutoLabelAfter(); 14 | } 15 | } -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.IncludeHandling/MvcContrib.Samples.IncludeHandling/Views/Shared/LogOnUserControl.ascx: -------------------------------------------------------------------------------- 1 | <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %> 2 | <% 3 | if (Request.IsAuthenticated) 4 | { 5 | %> 6 | Welcome <%=Html.Encode(Page.User.Identity.Name)%>! 7 | [ <%=Html.ActionLink("Log Off", "LogOff", "Account")%> ] 8 | <% 9 | } 10 | else 11 | { 12 | %> 13 | [ <%=Html.ActionLink("Log On", "LogOn", "Account")%> ] 14 | <% 15 | } 16 | %> 17 | -------------------------------------------------------------------------------- /src/MVCContrib/UI/Grid/IGridModel.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using MvcContrib.UI.Grid.Syntax; 3 | 4 | namespace MvcContrib.UI.Grid 5 | { 6 | /// 7 | /// Defines a grid model 8 | /// 9 | public interface IGridModel where T: class 10 | { 11 | IGridRenderer Renderer { get; set; } 12 | ICollection> Columns { get; } 13 | IGridSections Sections { get; } 14 | string EmptyText { get; set; } 15 | IDictionary Attributes { get; set; } 16 | } 17 | } -------------------------------------------------------------------------------- /src/MVCContrib/UI/InputBuilder/Views/InputBuilders/Int32.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Title="" Language="C#" MasterPageFile="Field.Master" Inherits="System.Web.Mvc.ViewPage>" %> 2 | <%@ Import Namespace="MvcContrib.UI.InputBuilder.Views"%> 3 | 4 | 5 | 6 | <%=Html.TextBox(Model.Name,Model.Value) %> 7 | -------------------------------------------------------------------------------- /src/MvcContrib.FluentHtml/Behaviors/GenericTypeSpec.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace MvcContrib.FluentHtml.Behaviors 4 | { 5 | public class GenericTypeSpec 6 | { 7 | public Type OpenGenericType; 8 | public Type GenericParameterType; 9 | 10 | public Func Matcher 11 | { 12 | get 13 | { 14 | return x => x.IsGenericType && 15 | x.GetGenericTypeDefinition() == OpenGenericType && 16 | x.GetGenericArguments()[0].IsAssignableFrom(GenericParameterType); 17 | } 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.IncludeHandling/MvcContrib.Samples.IncludeHandling/Views/Home/About.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> 2 | 3 | 4 | About Us 5 | 6 | 7 | 8 |

About

9 |

10 | Put content here. 11 |

12 |
13 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.IncludeHandling/MvcContrib.Samples.IncludeHandling/Views/Home/CssOne.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> 2 | 3 | 4 | CssOne 5 | 6 | 7 | 8 | <% Html.IncludeCss("~/content/css/Site.css"); %> 9 |

CssOne

10 | 11 |
12 | -------------------------------------------------------------------------------- /src/MVCContrib/UI/InputBuilder/Views/InputBuilders/DisplayLabel.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Title="" Language="C#" MasterPageFile="Display.Master" 2 | Inherits="System.Web.Mvc.ViewPage" %> 3 | <%@ Import Namespace="MvcContrib.UI.InputBuilder.Views"%> 4 | <%@ Import Namespace="MvcContrib.UI.InputBuilder"%> 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/MVCContrib/UI/InputBuilder/Views/InputBuilders/ReadOnly.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Title="" Language="C#" MasterPageFile="Field.Master" Inherits="System.Web.Mvc.ViewPage>" %> 2 | <%@ Import Namespace="MvcContrib.UI.InputBuilder.Views"%> 3 | <%@ Import Namespace="System.Web.Mvc.Html"%> 4 | 5 | <%=Html.Encode(Model.Value) %> 6 | 7 | 8 | <%=Html.Encode(Model.Label) %>: 9 | -------------------------------------------------------------------------------- /src/MvcContrib.Castle/ICastleBindingContainer.cs: -------------------------------------------------------------------------------- 1 | using Castle.Components.Binder; 2 | 3 | namespace MvcContrib.Castle 4 | { 5 | /// 6 | /// Controllers that implement this interface will have access to the IDataBinder instance used by the CastleBinderAttribute. 7 | /// 8 | public interface ICastleBindingContainer 9 | { 10 | /// 11 | /// The Binder that is used by the CastleBindAttribute to perform parameter binding. 12 | /// 13 | IDataBinder Binder { get; set; } 14 | } 15 | } -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.PortableArea/PortableAreaSpike/Services/PortableAreaHandlers/LogAllMessagesObserver.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Diagnostics; 3 | using MvcContrib.PortableAreas; 4 | 5 | namespace PortableAreaSpike 6 | { 7 | public class LogAllMessagesObserver : MessageHandler 8 | { 9 | public override void Handle(IEventMessage message) 10 | { 11 | Debug.WriteLine(message); 12 | } 13 | 14 | public override bool CanHandle(Type type) 15 | { 16 | return true; 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.UI/Views/Shared/Error.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> 2 | 3 | 4 | Error 5 | 6 | 7 | 8 |

9 | Sorry, an error occurred while processing your request. 10 |

11 |
12 | -------------------------------------------------------------------------------- /src/MvcContrib.FluentHtml/Html/HtmlTag.cs: -------------------------------------------------------------------------------- 1 | namespace MvcContrib.FluentHtml.Html 2 | { 3 | public static class HtmlTag 4 | { 5 | public const string Div = "div"; 6 | public const string Input = "input"; 7 | public const string Span = "span"; 8 | public const string Select = "select"; 9 | public const string TextArea = "textarea"; 10 | public const string Option = "option"; 11 | public const string Label = "label"; 12 | public const string UnOrderedList = "ul"; 13 | public const string ListItem = "li"; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/MVCContrib/UI/MenuBuilder/MenuTitle.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace MvcContrib.UI.MenuBuilder 4 | { 5 | /// 6 | /// Apply this tag to an action to set the title associated with it 7 | /// 8 | public class MenuTitle : Attribute 9 | { 10 | /// 11 | /// Specify the title text associated with this action 12 | /// 13 | /// 14 | public MenuTitle(string title) 15 | { 16 | Title = title; 17 | } 18 | 19 | public string Title { get; set; } 20 | } 21 | } -------------------------------------------------------------------------------- /src/MVCContrib.UnitTests/TestHelper/TestHelperControllerWithArgs.cs: -------------------------------------------------------------------------------- 1 | namespace MvcContrib.TestHelper.Test 2 | { 3 | public class TestHelperControllerWithArgs : TestHelperController 4 | { 5 | private readonly ITestService _service; 6 | 7 | public TestHelperControllerWithArgs(ITestService service) 8 | { 9 | _service = service; 10 | } 11 | 12 | public string ReturnMooFromService() 13 | { 14 | return _service.ReturnMoo(); 15 | } 16 | } 17 | 18 | public interface ITestService 19 | { 20 | string ReturnMoo(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.PortableArea/PortableAreaSpike/Views/Shared/Error.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> 2 | 3 | 4 | Error 5 | 6 | 7 | 8 |

9 | Sorry, an error occurred while processing your request. 10 |

11 |
12 | -------------------------------------------------------------------------------- /src/MVCContrib/UI/InputBuilder/Views/InputBuilders/Enum.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Title="" Language="C#" MasterPageFile="Field.Master" 2 | Inherits="System.Web.Mvc.ViewPage>>" %> 3 | <%@ Import Namespace="MvcContrib.UI.InputBuilder.Views"%> 4 | 5 | 6 | 7 | 8 | <%=Html.DropDownList(Model.Name,Model.Value)%> 9 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.IncludeHandling/MvcContrib.Samples.IncludeHandling/Views/Home/JsMooTools.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> 2 | 3 | 4 | JsMooTools 5 | 6 | 7 | 8 | <% Html.IncludeJs("~/content/js/lib/moo/mootools-core-nc.js");%> 9 |

JsMooTools

10 | 11 |
12 | -------------------------------------------------------------------------------- /src/MVCContrib.UnitTests/IncludeHandling/configs/CanChangeAllTheDefaultsEvenThoughIShouldntWriteATestWithABigSurfaceAreaLikeThisNaughtyPete.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /src/MvcContrib.FluentHtml/Html/HtmlInputType.cs: -------------------------------------------------------------------------------- 1 | namespace MvcContrib.FluentHtml.Html 2 | { 3 | public static class HtmlInputType 4 | { 5 | public const string Text = "text"; 6 | public const string Checkbox = "checkbox"; 7 | public const string Hidden = "hidden"; 8 | public const string Password = "password"; 9 | public const string Submit = "submit"; 10 | public const string File = "file"; 11 | public static string Radio = "radio"; 12 | public const string Button = "button"; 13 | public const string Reset = "reset"; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.SubControllers/Website/Controllers/SubControllers/SecondLevelSubController.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Web.Mvc; 3 | using MvcContrib; 4 | 5 | namespace Website.Controllers.SubControllers 6 | { 7 | public class SecondLevelSubController : SubController 8 | { 9 | public ViewResult SecondLevel(LeftController left, RightController right, FormSubmitController formSubmit) 10 | { 11 | formSubmit.Model = DateTime.Now; 12 | ViewData["text"] = "I am a second level controller"; 13 | return View(); 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /src/MVCContrib/UI/MenuBuilder/MenuHelpText.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace MvcContrib.UI.MenuBuilder 4 | { 5 | /// 6 | /// Apply this tag to an action to set a help text associated with it. 7 | /// 8 | public class MenuHelpText : Attribute 9 | { 10 | /// 11 | /// Specify the help text associated with this action 12 | /// 13 | /// 14 | public MenuHelpText(string helpText) 15 | { 16 | HelpText = helpText; 17 | } 18 | 19 | public string HelpText { get; set; } 20 | } 21 | } -------------------------------------------------------------------------------- /src/MvcContrib.TestHelper/MvcContrib.TestHelper/Ui/TextInputTesterFactory.cs: -------------------------------------------------------------------------------- 1 | using System.Linq.Expressions; 2 | using System.Reflection; 3 | 4 | namespace MvcContrib.TestHelper.Ui 5 | { 6 | public class TextInputTesterFactory : IInputTesterFactory 7 | { 8 | public bool CanHandle(PropertyInfo info) 9 | { 10 | return true; 11 | } 12 | 13 | public IInputTester Create(LambdaExpression expression, string text) 14 | { 15 | return new TextInputTester(expression,text); 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.ConventionController/Default.aspx.cs: -------------------------------------------------------------------------------- 1 | using System.Web; 2 | using System.Web.Mvc; 3 | using System.Web.UI; 4 | 5 | namespace MvcContrib.Samples 6 | { 7 | public partial class _Default : Page 8 | { 9 | public void Page_Load(object sender, System.EventArgs e) 10 | { 11 | HttpContext.Current.RewritePath(Request.ApplicationPath, false); 12 | IHttpHandler httpHandler = new MvcHttpHandler(); 13 | httpHandler.ProcessRequest(HttpContext.Current); 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.PortableArea/LoginPortableArea/Login/Views/Shared/UserWidget.ascx: -------------------------------------------------------------------------------- 1 | <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %> 2 | <%@ Import Namespace="System.Web.Mvc.Html"%> 3 | <%@ Import Namespace="LoginPortableArea.Login.Helpers"%> 4 | <% 5 | if (Request.IsAuthenticated) 6 | { 7 | %> 8 | Welcome <%=Html.Encode(Page.User.Identity.Name)%>! 9 | [ <%=Html.LogOffLink("Log Off") %> ] 10 | <% 11 | } 12 | else 13 | { 14 | %> 15 | [ <%=Html.LoginLink("Log On")%> ] 16 | <% 17 | } 18 | %> 19 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.SubControllers/Website/Controllers/SubControllers/LeftController.cs: -------------------------------------------------------------------------------- 1 | using System.Web.Mvc; 2 | using MvcContrib; 3 | 4 | namespace Website.Controllers.SubControllers 5 | { 6 | public class LeftController : SubController 7 | { 8 | public ViewResult Left(int? number, string name, RightController right) 9 | { 10 | //Subcontroller actions have all the behavior of regular actions, including pulling things off querystrings 11 | ViewData["text"] = string.Format("{0}:{1}", name, number); 12 | return View(); 13 | } 14 | } 15 | } -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.SubControllers/Website/Views/SecondLevel/SecondLevel.ascx: -------------------------------------------------------------------------------- 1 | <%@ Import Namespace="MvcContrib" %> 2 | <%@ Control Language="C#" AutoEventWireup="true" Inherits="System.Web.Mvc.ViewUserControl" %> 3 |
4 | <%=ViewData["text"] %> 5 |
6 | <% ViewData.Get("left").Invoke(); %> 7 |
8 |
9 | <% ViewData.Get("right").Invoke(); %> 10 |
11 |
12 | <% ViewData.Get("formsubmit").Invoke(); %> 13 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.IncludeHandling/MvcContrib.Samples.IncludeHandling/Views/Shared/Error.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> 2 | 3 | 4 | Error 5 | 6 | 7 | 8 |

9 | Sorry, an error occurred while processing your request. 10 |

11 |
12 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.PortableArea/PortableAreaSpike/Default.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="PortableAreaSpike.Default" %> 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 |
12 | 13 |
14 |
15 | 16 | 17 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.UI/Models/PeopleFactory.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | namespace MvcContrib.Samples.UI.Models 5 | { 6 | public class PeopleFactory 7 | { 8 | public IEnumerable CreatePeople() 9 | { 10 | var startDate = new DateTime(1980,1,1); 11 | for(int i = 0; i < 25; i++ ) 12 | { 13 | yield return new Person 14 | { 15 | Id = i, 16 | Name = "Person " + i, 17 | Gender = i%2 == 0 ? "M" : "F", 18 | DateOfBirth = startDate.AddDays(i) 19 | }; 20 | } 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.UI/Views/Account/ChangePasswordSuccess.aspx: -------------------------------------------------------------------------------- 1 | <%@Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> 2 | 3 | 4 | Change Password 5 | 6 | 7 | 8 |

Change Password

9 |

10 | Your password has been changed successfully. 11 |

12 |
13 | -------------------------------------------------------------------------------- /src/MvcContrib.FluentHtml/Elements/RadioButton.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Linq.Expressions; 3 | using MvcContrib.FluentHtml.Behaviors; 4 | 5 | namespace MvcContrib.FluentHtml.Elements 6 | { 7 | /// 8 | /// A radio button. 9 | /// 10 | public class RadioButton : RadioButtonBase 11 | { 12 | public RadioButton(string name) : base(name) { } 13 | 14 | public RadioButton(string name, MemberExpression forMember, IEnumerable behaviors) 15 | : base(name, forMember, behaviors) { } 16 | } 17 | } -------------------------------------------------------------------------------- /src/MVCContrib/UI/InputBuilder/Views/InputBuilders/Row.Master: -------------------------------------------------------------------------------- 1 | <%@ Import Namespace="MvcContrib.UI.InputBuilder.Views"%> 2 | <%@ Import Namespace="System.Web.Mvc.Html"%> 3 | <%@ Master Language="C#" Inherits="System.Web.Mvc.ViewMasterPage" %> 4 | 5 | 6 | <%=Html.ValidationMessage(Model.Name,"*") %> 7 | 8 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.UnityControllerFactory/Controllers/HomeController.cs: -------------------------------------------------------------------------------- 1 | using System.Web.Mvc; 2 | using MvcContrib.Samples.UnityControllerFactory.Models; 3 | 4 | namespace MvcContrib.Samples.UnityControllerFactory.Controllers 5 | { 6 | public class HomeController : Controller 7 | { 8 | private IService _service; 9 | 10 | public HomeController(IService service) 11 | { 12 | _service = service; 13 | } 14 | 15 | public ActionResult Index() 16 | { 17 | ViewData["numbers"] = _service.GetNumbers(); 18 | return View("index"); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /bin/nunit/agent.log.conf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /src/MVCContrib/UI/InputBuilder/DefaultPropertyConventionsFactory.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using MvcContrib.UI.InputBuilder.Conventions; 3 | 4 | namespace MvcContrib.UI.InputBuilder 5 | { 6 | public class DefaultPropertyConventionsFactory : List 7 | { 8 | public DefaultPropertyConventionsFactory() 9 | { 10 | Add(new ArrayPropertyConvention()); 11 | Add(new GuidPropertyConvention()); 12 | Add(new EnumPropertyConvention()); 13 | Add(new DateTimePropertyConvention()); 14 | Add(new DefaultProperyConvention()); 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.ConventionController/Global.asax.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Web; 3 | using System.Web.Mvc; 4 | using System.Web.Routing; 5 | 6 | namespace MvcContrib.Samples 7 | { 8 | public class Global : HttpApplication 9 | { 10 | protected void Application_Start(object sender, EventArgs e) 11 | { 12 | RouteTable.Routes.Add(new Route("{controller}/{action}/{id}", new MvcRouteHandler()) 13 | { 14 | Defaults = new RouteValueDictionary(new {controller = "Shipment", action = "Index", id = ""}), 15 | }); 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /bin/nunit/launcher.log.conf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.WindsorControllerFactory/Controllers/HomeController.cs: -------------------------------------------------------------------------------- 1 | using System.Web.Mvc; 2 | using MvcContrib.Samples.WindsorControllerFactory.Models; 3 | 4 | namespace MvcContrib.Samples.WindsorControllerFactory.Controllers 5 | { 6 | public class HomeController : Controller 7 | { 8 | private IService _service; 9 | 10 | 11 | public HomeController(IService service) 12 | { 13 | _service = service; 14 | } 15 | 16 | public ActionResult Index() 17 | { 18 | ViewData["numbers"] = _service.GetNumbers(); 19 | return View("index"); 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/MVCContrib/UI/InputBuilder/Conventions/Property/DateTimePropertyConvention.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Reflection; 3 | using MvcContrib.UI.InputBuilder.Views; 4 | 5 | namespace MvcContrib.UI.InputBuilder.Conventions 6 | { 7 | public class DateTimePropertyConvention : DefaultProperyConvention 8 | { 9 | public override bool CanHandle(PropertyInfo propertyInfo) 10 | { 11 | return propertyInfo.PropertyType == typeof(DateTime); 12 | } 13 | 14 | public override PropertyViewModel CreateViewModel() 15 | { 16 | return new PropertyViewModel {}; 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /src/MVCContrib/UrlHelperExtensions.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Linq.Expressions; 3 | using System.Web.Mvc; 4 | using Microsoft.Web.Mvc; 5 | 6 | namespace MvcContrib 7 | { 8 | /// 9 | /// Extension methods for UrlHelper 10 | /// 11 | public static class UrlHelperExtensions 12 | { 13 | public static string Action(this UrlHelper urlHelper, Expression> expression) where TController : Controller 14 | { 15 | return LinkBuilder.BuildUrlFromExpression(urlHelper.RequestContext, urlHelper.RouteCollection, expression); 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /src/MvcContrib.StructureMap/StructureMapControllerFactory.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Web.Mvc; 3 | using System.Web.Routing; 4 | using StructureMap; 5 | 6 | namespace MvcContrib.StructureMap 7 | { 8 | public class StructureMapControllerFactory : DefaultControllerFactory 9 | { 10 | public override IController CreateController(RequestContext context, string controllerName) 11 | { 12 | Type controllerType = base.GetControllerType(context, controllerName); 13 | return ObjectFactory.GetInstance(controllerType) as IController; 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.IncludeHandling/MvcContrib.Samples.IncludeHandling/Views/Account/ChangePasswordSuccess.aspx: -------------------------------------------------------------------------------- 1 | <%@Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> 2 | 3 | 4 | Change Password 5 | 6 | 7 | 8 |

Change Password

9 |

10 | Your password has been changed successfully. 11 |

12 |
13 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.IncludeHandling/MvcContrib.Samples.IncludeHandling/Views/Home/JsJquery.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> 2 | 3 | 4 | Jquery 5 | 6 | 7 | 8 | <% Html.IncludeJs("~/content/js/lib/jq/jquery.js"); %> 9 | <% Html.IncludeJs("~/content/js/lib/jq/jquery-ui.js"); %> 10 | 11 |

Jquery

12 | 13 |
14 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.IoC/Controllers/HomeController.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Web; 3 | using System.Web.Mvc; 4 | using StructureMap; 5 | 6 | namespace MvcContrib.Samples.IoC.Controllers 7 | { 8 | [PluginFamily("Default")] 9 | [Pluggable("Default")] 10 | public class HomeController : Controller 11 | { 12 | 13 | public ActionResult Index() 14 | { 15 | return View("Index"); 16 | } 17 | 18 | 19 | public ActionResult About() 20 | { 21 | return View("About"); 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/MVCContrib/HttpContextProvider.cs: -------------------------------------------------------------------------------- 1 | using System.Web; 2 | 3 | namespace MvcContrib 4 | { 5 | public class HttpContextProvider : IHttpContextProvider 6 | { 7 | private readonly HttpContext _context; 8 | 9 | public HttpContextProvider(HttpContext context) 10 | { 11 | _context = context; 12 | } 13 | 14 | #region IHttpContextProvider Members 15 | 16 | public HttpContextBase Context 17 | { 18 | get { return new HttpContextWrapper(_context); } 19 | } 20 | 21 | public HttpRequestBase Request 22 | { 23 | get { return Context.Request; } 24 | } 25 | 26 | #endregion 27 | } 28 | } -------------------------------------------------------------------------------- /src/MVCContrib/UI/InputBuilder/Conventions/Property/IPropertyViewModelFactory.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Reflection; 3 | using MvcContrib.UI.InputBuilder.InputSpecification; 4 | using MvcContrib.UI.InputBuilder.Views; 5 | 6 | namespace MvcContrib.UI.InputBuilder.Conventions 7 | { 8 | public interface IPropertyViewModelFactory 9 | { 10 | bool CanHandle(PropertyInfo propertyInfo); 11 | PropertyViewModel Create(PropertyInfo propertyInfo, object model, string name, Type type); 12 | } 13 | 14 | public interface IRequireViewModelFactory 15 | { 16 | void Set(IViewModelFactory factory); 17 | } 18 | } -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.UI/Views/Home/Index.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> 2 | 3 | 4 | Home Page 5 | 6 | 7 | 8 |

<%= Html.Encode(ViewData["Message"]) %>

9 |

10 | To learn more about ASP.NET MVC visit http://asp.net/mvc. 11 |

12 |
13 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.PortableArea/PortableAreaSpike/Views/Home/About.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> 2 | <%@ Import Namespace="LoginPortableArea.Login.Helpers"%> 3 | 4 | 5 | About Us 6 | 7 | 8 | 9 |

About

10 |

11 | <%=Html.RssFeed("http://search.twitter.com/search.rss?q=jeffreypalermo")%> 12 |

13 |
14 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.SubControllers/Website/Views/Home/About.aspx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:2.0.50727.1433 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Website.Views.Home 12 | { 13 | 14 | 15 | public partial class About 16 | { 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.SubControllers/Website/Views/Home/Index.aspx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:2.0.50727.1433 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Website.Views.Home 12 | { 13 | 14 | 15 | public partial class Index 16 | { 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/MVCContrib/UI/Grid/Sortable/ISortableDataSource.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Data.SqlClient; 6 | 7 | namespace MvcContrib.UI.Grid 8 | { 9 | /// 10 | /// Any IEnumerable<T> based list that holds state for sorting. 11 | /// 12 | /// The type of the obje underlying enumerable's instance. 13 | public interface ISortableDataSource : IEnumerable 14 | { 15 | SortOrder SortOrder {get;set;} 16 | String SortBy{get;set;} 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/MvcContrib.FluentHtml/Elements/RadioSet.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Linq.Expressions; 3 | using MvcContrib.FluentHtml.Behaviors; 4 | using MvcContrib.FluentHtml.Html; 5 | 6 | namespace MvcContrib.FluentHtml.Elements 7 | { 8 | /// 9 | /// A set of radio buttons. 10 | /// 11 | public class RadioSet : RadioSetBase 12 | { 13 | public RadioSet(string name) : base(HtmlTag.Div, name) { } 14 | 15 | public RadioSet(string name, MemberExpression forMember, IEnumerable behaviors) 16 | : base(HtmlTag.Div, name, forMember, behaviors) { } 17 | } 18 | } -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.IncludeHandling/MvcContrib.Samples.IncludeHandling/Views/Home/JsPrototype.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> 2 | 3 | 4 | JsPrototype 5 | 6 | 7 | 8 | <% Html.IncludeJs("~/content/js/lib/prototype.js");%> 9 | <% Html.IncludeJs("~/content/js/lib/scriptaculous/scriptaculous.js");%> 10 | 11 |

JsPrototype

12 | 13 |
14 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.PortableArea/LoginPortableArea/Login/Views/Login/ForgotPasswordSent.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> 2 | <%@ Import Namespace="LoginPortableArea.Login.Models"%> 3 | <%@ Import Namespace="MvcContrib.UI.InputBuilder.Views"%> 4 | 5 | 6 | Login 7 | 8 | 9 | 10 | 11 |

Password Sent

12 | <%=Model%> 13 |
14 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.SubControllers/Website/Views/Shared/Error.aspx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:2.0.50727.1434 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Website.Views.Shared 12 | { 13 | 14 | 15 | public partial class Error 16 | { 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/MVCContrib.UnitTests/FluentHtml/FileUploadTests.cs: -------------------------------------------------------------------------------- 1 | using MvcContrib.UnitTests.FluentHtml.Helpers; 2 | using NUnit.Framework; 3 | using MvcContrib.FluentHtml.Elements; 4 | using MvcContrib.FluentHtml.Html; 5 | 6 | namespace MvcContrib.UnitTests.FluentHtml 7 | { 8 | [TestFixture] 9 | public class FileUploadTests 10 | { 11 | [Test] 12 | public void basic_file_upload_renders_with_corect_tag_and_type() 13 | { 14 | new FileUpload("x").ToString() 15 | .ShouldHaveHtmlNode("x") 16 | .ShouldBeNamed(HtmlTag.Input) 17 | .ShouldHaveAttribute(HtmlAttribute.Type).WithValue(HtmlInputType.File); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/MVCContrib.UnitTests/UI/InputBuilder/HtmlExtensionsTester.cs: -------------------------------------------------------------------------------- 1 | using System.Web.Mvc; 2 | using MvcContrib.UI.InputBuilder.Views; 3 | using NUnit.Framework; 4 | 5 | namespace MvcContrib.UnitTests.UI.InputBuilder 6 | { 7 | [TestFixture] 8 | public class HtmlExtensionsTester 9 | { 10 | [Test] 11 | public void testname() 12 | { 13 | //arrange 14 | HtmlExtensions.Render = (a, b) => ""; 15 | 16 | var helper = InputModelPropertyFactoryTester.CreateHelper(new Model()); 17 | //act 18 | 19 | var result = helper.InputButtons(); 20 | 21 | //assert 22 | Assert.IsEmpty(result); 23 | } 24 | } 25 | } -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.SubControllers/Website/Views/Account/Login.aspx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:2.0.50727.3040 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Website.Views.Account 12 | { 13 | 14 | 15 | public partial class Login 16 | { 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/MVCContrib.UnitTests/Binders/DerivedTypeBinderAwareAttributeTests.cs: -------------------------------------------------------------------------------- 1 | using MvcContrib.Attributes; 2 | using NUnit.Framework; 3 | 4 | namespace MvcContrib.UnitTests.Binders 5 | { 6 | [TestFixture] 7 | public class DerivedTypeBinderAwareAttributeTests 8 | { 9 | [Test] 10 | public void attribute_instantiates_and_sets_property_correctly() 11 | { 12 | Assert.That(new DerivedTypeBinderAwareAttribute(typeof(DerivedTypeBinderAwareAttributeTests)).DerivedType.Name, 13 | Is.EqualTo(typeof(DerivedTypeBinderAwareAttributeTests).Name)); 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/MVCContrib.UnitTests/FluentHtml/SubmitButtonTests.cs: -------------------------------------------------------------------------------- 1 | using MvcContrib.FluentHtml.Elements; 2 | using MvcContrib.FluentHtml.Html; 3 | using MvcContrib.UnitTests.FluentHtml.Helpers; 4 | using NUnit.Framework; 5 | 6 | namespace MvcContrib.UnitTests.FluentHtml 7 | { 8 | [TestFixture] 9 | public class SubmitButtonTests 10 | { 11 | [Test] 12 | public void submit_button_renders_with_corect_tag_and_type() 13 | { 14 | new SubmitButton("x").ToString() 15 | .ShouldHaveHtmlNode("x") 16 | .ShouldBeNamed(HtmlTag.Input) 17 | .ShouldHaveAttribute(HtmlAttribute.Type).WithValue(HtmlInputType.Submit); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/MVCContrib/UI/InputBuilder/Helpers/ExpressionHelper.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Linq.Expressions; 3 | 4 | namespace MvcContrib.UI.InputBuilder.Helpers 5 | { 6 | public static class ExpressionHelper 7 | { 8 | public static object Evaluate(LambdaExpression expression, object target) 9 | { 10 | if(target == null) 11 | { 12 | return null; 13 | } 14 | 15 | Delegate func = expression.Compile(); 16 | 17 | object result = null; 18 | try 19 | { 20 | result = func.DynamicInvoke(target); 21 | } 22 | catch(Exception) 23 | { 24 | ; 25 | } 26 | 27 | return result; 28 | } 29 | } 30 | } -------------------------------------------------------------------------------- /src/MVCContrib/UI/InputBuilder/Views/PropertyViewModel.cs: -------------------------------------------------------------------------------- 1 | namespace MvcContrib.UI.InputBuilder.Views 2 | { 3 | public class PropertyViewModel : TypeViewModel 4 | { 5 | 6 | public bool PropertyIsRequired { get; set; } 7 | 8 | public string Example { get; set; } 9 | 10 | public bool HasValidationMessages { get; set; } 11 | 12 | public bool HasExample() 13 | { 14 | return !string.IsNullOrEmpty(Example); 15 | } 16 | } 17 | 18 | public class PropertyViewModel : PropertyViewModel 19 | { 20 | public new T Value 21 | { 22 | get { return (T)base.Value; } 23 | set { base.Value = value; } 24 | } 25 | } 26 | } -------------------------------------------------------------------------------- /src/MvcContrib.TestHelper/MvcContrib.TestHelper/ActionResultAssertionException.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace MvcContrib.TestHelper 4 | { 5 | /// 6 | /// Exception that is thrown when a ActionResult assertion fails. 7 | /// 8 | public class ActionResultAssertionException : Exception 9 | { 10 | /// 11 | /// Creates a new instance of the class. 12 | /// 13 | /// Message thrown in the exception. 14 | public ActionResultAssertionException(string message) : base(message) 15 | { 16 | 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.PortableArea/PortableAreaSpike/Views/Home/Index.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> 2 | 3 | 4 | Home Page 5 | 6 | 7 | 8 |

<%= Html.Encode(ViewData["Message"]) %>

9 |

10 | To learn more about ASP.NET MVC visit http://asp.net/mvc. 11 |

12 |
13 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.SubControllers/Website/Views/Account/Register.aspx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:2.0.50727.3040 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Website.Views.Account 12 | { 13 | 14 | 15 | public partial class Register 16 | { 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.SubControllers/Website/Controllers/SubControllers/FormSubmitController.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Web.Mvc; 3 | using MvcContrib; 4 | 5 | namespace Website.Controllers.SubControllers 6 | { 7 | public class FormSubmitController : SubController 8 | { 9 | [AcceptVerbs("POST")] 10 | public ViewResult FormSubmit(string sometextbox) 11 | { 12 | ViewData["sometextbox"] = sometextbox + " submitted on " + Model.ToShortDateString(); 13 | return View("posted"); 14 | } 15 | 16 | [AcceptVerbs("GET")] 17 | public ViewResult FormSubmit() 18 | { 19 | return View(); 20 | } 21 | } 22 | } -------------------------------------------------------------------------------- /src/MvcContrib.TestHelper/MvcContrib.TestHelper/FluentController/ModelStateHelper.cs: -------------------------------------------------------------------------------- 1 | using System.Web.Mvc; 2 | 3 | namespace MvcContrib.TestHelper.FluentController 4 | { 5 | public static class ModelStateHelper 6 | { 7 | public static void SetModelStateValid(ActionExpectations action) 8 | where T : Controller, new() 9 | { 10 | action.MockController.ViewData.ModelState.Clear(); 11 | } 12 | 13 | public static void SetModelStateInvalid(ActionExpectations action) 14 | where T : Controller, new() 15 | { 16 | action.MockController.ViewData.ModelState.AddModelError("Test Error", "Error message"); 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.SubControllers/Website/Views/Account/ChangePassword.aspx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:2.0.50727.3040 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Website.Views.Account 12 | { 13 | 14 | 15 | public partial class ChangePassword 16 | { 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.UI/Models/Person.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel.DataAnnotations; 4 | namespace MvcContrib.Samples.UI.Models 5 | { 6 | public class Person 7 | { 8 | [StringLength(50)] 9 | public string Name { get; set; } 10 | public int Id { get; set; } 11 | public string Gender { get; set; } 12 | public DateTime DateOfBirth { get; set; } 13 | public IList Roles { get; set; } 14 | public Parent Mother { get; set; } 15 | public Parent Father { get; set; } 16 | public Guid? EmployerId { get; set; } 17 | public Color FavoriteColor { get; set; } 18 | } 19 | } -------------------------------------------------------------------------------- /src/MVCContrib/UI/Grid/Sortable/ISortableGridRenderer.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.IO; 6 | using System.Web.Mvc; 7 | 8 | namespace MvcContrib.UI.Grid 9 | { 10 | /// 11 | /// A IGridRenderer extension that takes a sortable data source. 12 | /// 13 | /// 14 | public interface ISortableGridRenderer : IGridRenderer where T : class 15 | { 16 | void Render(IGridModel gridModel, ISortableDataSource dataSource, TextWriter output, ViewContext viewContext); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/MvcContrib.IncludeHandling/Configuration/CssTypeElement.cs: -------------------------------------------------------------------------------- 1 | using System.Configuration; 2 | using Yahoo.Yui.Compressor; 3 | 4 | namespace MvcContrib.IncludeHandling.Configuration 5 | { 6 | public class CssTypeElement : IncludeTypeElement, ICssMinifySettings 7 | { 8 | [ConfigurationProperty(OPTIONS)] 9 | private CssOptionsElement cssOptions 10 | { 11 | get { return (CssOptionsElement) this[OPTIONS] ?? new CssOptionsElement(); } 12 | } 13 | 14 | #region ICssMinifySettings Members 15 | 16 | public CssCompressionType CompressionType 17 | { 18 | get { return cssOptions.CompressionType; } 19 | } 20 | 21 | #endregion 22 | } 23 | } -------------------------------------------------------------------------------- /src/MVCContrib.UnitTests/FluentHtml/CustomBehaviors/CustomRequiredHtmlBehavior.cs: -------------------------------------------------------------------------------- 1 | using System.ComponentModel.DataAnnotations; 2 | using MvcContrib.FluentHtml.Behaviors; 3 | using MvcContrib.FluentHtml.Elements; 4 | 5 | namespace MvcContrib.UnitTests.FluentHtml.CustomBehaviors 6 | { 7 | public class CustomRequiredHtmlBehavior : IBehavior 8 | { 9 | public void Execute(IMemberElement element) 10 | { 11 | var helper = new MemberBehaviorHelper(); 12 | var attribute = helper.GetAttribute(element); 13 | if (attribute != null) 14 | { 15 | element.SetAttr("class", "req"); 16 | } 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/MVCContrib/UI/InputBuilder/Views/Partial.cs: -------------------------------------------------------------------------------- 1 | namespace MvcContrib.UI.InputBuilder.Views 2 | { 3 | public class Partial 4 | { 5 | public const string Boolean = "Boolean"; 6 | public const string DateTime = "DateTime"; 7 | public const string Enum = "Enum"; 8 | public const string Form = "Form"; 9 | public const string Guid = "Guid"; 10 | public const string Int32 = "Int32"; 11 | public const string MultilineText = "MultilineText"; 12 | public const string RadioButtons = "RadioButtons"; 13 | public const string ReadOnly = "ReadOnly"; 14 | public const string String = "String"; 15 | public const string Submit = "Submit"; 16 | } 17 | } -------------------------------------------------------------------------------- /src/MvcContrib.FluentHtml/Elements/CheckBoxList.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Linq.Expressions; 3 | using MvcContrib.FluentHtml.Behaviors; 4 | using MvcContrib.FluentHtml.Html; 5 | 6 | namespace MvcContrib.FluentHtml.Elements 7 | { 8 | /// 9 | /// A list of checkboxes buttons. 10 | /// 11 | public class CheckBoxList : CheckBoxListBase 12 | { 13 | public CheckBoxList(string name) : base(HtmlTag.Div, name) { } 14 | 15 | public CheckBoxList(string name, MemberExpression forMember, IEnumerable behaviors) 16 | : base(HtmlTag.Div, name, forMember, behaviors) { } 17 | } 18 | } -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.SubControllers/Website/Views/Account/ChangePasswordSuccess.aspx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:2.0.50727.3040 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Website.Views.Account 12 | { 13 | 14 | 15 | public partial class ChangePasswordSuccess 16 | { 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.TestHelper/Website/Views/Stars/ListWithLinks.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" 2 | Inherits="System.Web.Mvc.ViewPage>" %> 3 | 4 | <%@ Import Namespace="MvcContrib.TestHelper.Sample.Controllers" %> 5 |

Stars

6 | 7 |
    8 | <% foreach (var star in Model) { %> 9 |
  • 10 | <%= star.Name %> approx: <%= star.Distance %> AU <%= this.Html.ActionLink(c => c.ListWithLinks(), "Nearby Stars")%> 11 |
  • 12 | <% } %> 13 |
14 | 15 |
-------------------------------------------------------------------------------- /src/MvcContrib.IncludeHandling/Include.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace MvcContrib.IncludeHandling 4 | { 5 | public enum IncludeType 6 | { 7 | Js, 8 | Css 9 | } 10 | 11 | public class Include 12 | { 13 | public Include(IncludeType type, string uri, string content, DateTime lastModifiedAt) 14 | { 15 | Type = type; 16 | Source = uri; 17 | Content = content; 18 | LastModifiedAt = lastModifiedAt; 19 | } 20 | 21 | public IncludeType Type { get; protected set; } 22 | public string Source { get; protected set; } 23 | public string Content { get; protected set; } 24 | public DateTime LastModifiedAt { get; protected set; } 25 | } 26 | } -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.UI/Views/Grid/UsingGridModel.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage>" %> 2 | <%@ Import Namespace="MvcContrib.Samples.UI.Models"%> 3 | <%@ Import Namespace="MvcContrib.UI.Grid"%> 4 | 5 | 6 | Custom GridModel 7 | 8 | 9 | 10 | 11 |

Using a GridModel class

12 | 13 | <%= Html.Grid(Model).WithModel(new PeopleGridModel()) %> 14 | 15 |
16 | -------------------------------------------------------------------------------- /src/MVCContrib/UI/Grid/RenderingContext.cs: -------------------------------------------------------------------------------- 1 | using System.IO; 2 | using System.Web.Mvc; 3 | 4 | namespace MvcContrib.UI.Grid 5 | { 6 | /// 7 | /// Context class used when rendering the grid. 8 | /// 9 | public class RenderingContext 10 | { 11 | public TextWriter Writer { get; private set; } 12 | public ViewContext ViewContext { get; private set; } 13 | public ViewEngineCollection ViewEngines { get; private set; } 14 | 15 | public RenderingContext(TextWriter writer, ViewContext viewContext, ViewEngineCollection viewEngines) 16 | { 17 | Writer = writer; 18 | ViewContext = viewContext; 19 | ViewEngines = viewEngines; 20 | } 21 | } 22 | } -------------------------------------------------------------------------------- /src/MVCContrib.UnitTests/TestHelper/TestHelperWithArgsController.cs: -------------------------------------------------------------------------------- 1 | namespace MvcContrib.UnitTests.TestHelper 2 | { 3 | public class TestHelperWithArgsController : TestHelperController 4 | { 5 | private readonly ITestService _service; 6 | 7 | public TestHelperWithArgsController(ITestService service) 8 | { 9 | _service = service; 10 | } 11 | 12 | public string ReturnMooFromService() 13 | { 14 | return _service.ReturnMoo(); 15 | } 16 | } 17 | 18 | public interface ITestService 19 | { 20 | string ReturnMoo(); 21 | } 22 | 23 | internal class TestService : ITestService 24 | { 25 | public string ReturnMoo() 26 | { 27 | return "Moo"; 28 | } 29 | } 30 | } -------------------------------------------------------------------------------- /src/Samples/IocControllerFactory/Website/Views/Home/Index.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" 2 | Inherits="System.Web.Mvc.ViewPage>" %> 3 | <%@ Import namespace="Website.Models"%> 4 | 5 | 6 |

7 | Introduction to IocControllerFactory!

8 |

9 | 10 |

11 |

12 |

    13 | <%foreach (Link link in this.Model) 14 | {%> 15 |
  • <%=link.Title%>
  • 16 | <%}%> 17 |
18 | 19 |

20 |
21 | -------------------------------------------------------------------------------- /src/MVCContrib.UnitTests/ConventionController/TestBinder.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Web.Mvc; 3 | using MvcContrib.Attributes; 4 | 5 | namespace MvcContrib.UnitTests.ConventionController 6 | { 7 | [Obsolete("Consider using System.Web.Mvc.DefaultModelBinder instead.")] 8 | public class TestBinder : AbstractParameterBinderAttribute 9 | { 10 | public TestBinder() : base(null) 11 | { 12 | } 13 | 14 | 15 | public override object BindModel(ControllerContext controllerContext, ModelBindingContext bindingContext) 16 | { 17 | ((TestController)controllerContext.Controller).BinderFilterOrdering += "Binder"; 18 | return null; 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /src/MVCContrib.UnitTests/FluentHtml/ButtonTests.cs: -------------------------------------------------------------------------------- 1 | using MvcContrib.FluentHtml.Elements; 2 | using MvcContrib.FluentHtml.Html; 3 | using MvcContrib.UnitTests.FluentHtml.Helpers; 4 | using NUnit.Framework; 5 | 6 | namespace MvcContrib.UnitTests.FluentHtml 7 | { 8 | [TestFixture] 9 | public class ButtonTests 10 | { 11 | [Test] 12 | public void button_renders_with_corect_tag_and_type() 13 | { 14 | new Button("x").ToString() 15 | .ShouldHaveHtmlNode("x") 16 | .ShouldBeNamed(HtmlTag.Input) 17 | .ShouldHaveAttribute(HtmlAttribute.Type).WithValue(HtmlInputType.Button); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.WindsorControllerFactory/Views/Home/Index.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" AutoEventWireup="false" Inherits="System.Web.Mvc.ViewPage" %> 2 | 3 | 4 | 5 | Untitled Page 6 | 7 | 8 |
9 | Numbers generated from a service injected by windsor: 10 |
    11 | <% foreach(int number in (IEnumerable) ViewData["numbers"]) { %> 12 |
  • <%= number %>
  • 13 | <% } %> 14 |
15 |
16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /src/MVCContrib/UI/Grid/GridSections.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace MvcContrib.UI.Grid 4 | { 5 | /// 6 | /// Sections for a grid. 7 | /// 8 | public class GridSections : IGridSections where T : class 9 | { 10 | private GridRow _row = new GridRow(); 11 | private GridRow _headerRow = new GridRow(); 12 | 13 | GridRow IGridSections.Row 14 | { 15 | get { return _row; } 16 | } 17 | 18 | GridRow IGridSections.HeaderRow 19 | { 20 | get { return _headerRow; } 21 | } 22 | } 23 | 24 | public interface IGridSections where T : class 25 | { 26 | GridRow Row { get; } 27 | GridRow HeaderRow { get; } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/MVCContrib/UI/InputBuilder/Views/InputBuilders/DateTime.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Title="" Language="C#" MasterPageFile="Field.Master" 2 | Inherits="System.Web.Mvc.ViewPage>" %> 3 | <%@ Import Namespace="MvcContrib.UI.InputBuilder.Views"%> 4 | 5 | 6 | 7 | 8 | <%=Html.TextBox(Model.Name,Model.Value,new {@id=Model.Name}) %> 9 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /src/MvcContrib.FluentHtml/Behaviors/AutoLabelSettings.cs: -------------------------------------------------------------------------------- 1 | namespace MvcContrib.FluentHtml.Behaviors 2 | { 3 | public class AutoLabelSettings : IBehaviorMarker 4 | { 5 | public bool UseFullNameForNestedProperties { get; private set; } 6 | public string LabelFormat { get; private set; } 7 | public string LabelCssClass { get; private set; } 8 | 9 | public AutoLabelSettings() : this(false, null, null) { } 10 | 11 | public AutoLabelSettings(bool useFullNameForNestedProperties, string labelFormat, string labelCssClass) 12 | { 13 | UseFullNameForNestedProperties = useFullNameForNestedProperties; 14 | LabelFormat = labelFormat; 15 | LabelCssClass = labelCssClass; 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.PortableArea/LoginPortableArea/Login/Views/Login/Index.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" 2 | Inherits="System.Web.Mvc.ViewPage" %> 3 | <%@ Import Namespace="LoginPortableArea.Login.Models"%> 4 | <%@ Import Namespace="MvcContrib.UI.InputBuilder.Views"%> 5 | 6 | 7 | Login 8 | 9 | 10 | 11 | 12 |

Login

13 | <%=Html.InputForm() %> 14 | ">Forgot Password 15 |
16 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.SubControllers/Website/Views/Web.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /bin/nunit/NUnitTests.nunit: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.UI/Views/Grid/Show.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> 2 | <%@ Import Namespace="MvcContrib.Samples.UI.Models"%> 3 | 4 | 5 | Show 6 | 7 | 8 | 9 | 10 |

Details for: <%= Model.Name %>

11 | 12 |

Id: <%= Model.Id %>

13 |

Gender: <%= Model.Gender %>

14 |

Date of Birth: <%= Model.DateOfBirth %>

15 | 16 |
17 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.UnityControllerFactory/Views/Home/Index.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" AutoEventWireup="false" Inherits="System.Web.Mvc.ViewPage" %> 2 | 3 | 4 | 5 | Untitled Page 6 | 7 | 8 |
9 | Numbers generated from a service injected by Unity: 10 |
    11 | <% foreach(int number in (IEnumerable) ViewData["numbers"]) { %> 12 |
  • <%= number %>
  • 13 | <% } %> 14 |
15 |
16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /src/MVCContrib.UnitTests/FluentHtml/ResetButtonTests.cs: -------------------------------------------------------------------------------- 1 | using MvcContrib.FluentHtml.Elements; 2 | using MvcContrib.FluentHtml.Html; 3 | using MvcContrib.UnitTests.FluentHtml.Helpers; 4 | using NUnit.Framework; 5 | 6 | namespace MvcContrib.UnitTests.FluentHtml 7 | { 8 | [TestFixture] 9 | public class ResetButtonTests 10 | { 11 | [Test] 12 | public void reset_button_renders_with_corect_tag_and_type() 13 | { 14 | new ResetButton("x").ToString() 15 | .ShouldHaveHtmlNode("x") 16 | .ShouldBeNamed(HtmlTag.Input) 17 | .ShouldHaveAttribute(HtmlAttribute.Type).WithValue(HtmlInputType.Reset); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/MVCContrib/UI/InputBuilder/Conventions/Property/GuidPropertyConvention.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Reflection; 3 | using MvcContrib.UI.InputBuilder.Views; 4 | 5 | namespace MvcContrib.UI.InputBuilder.Conventions 6 | { 7 | public class GuidPropertyConvention : DefaultProperyConvention, IPropertyViewModelFactory 8 | { 9 | public override bool CanHandle(PropertyInfo propertyInfo) 10 | { 11 | return propertyInfo.PropertyType.IsAssignableFrom(typeof(Guid)); 12 | } 13 | public override string Layout(PropertyInfo info) 14 | { 15 | return "HiddenField"; 16 | } 17 | public override string PartialNameConvention(PropertyInfo propertyInfo) 18 | { 19 | return "Guid"; 20 | } 21 | } 22 | } -------------------------------------------------------------------------------- /src/MvcContrib.IncludeHandling/IIncludeCombiner.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | namespace MvcContrib.IncludeHandling 5 | { 6 | public interface IIncludeCombiner 7 | { 8 | string RenderIncludes(IEnumerable sources, IncludeType type, bool isInDebugMode); 9 | string RegisterCombination(IEnumerable sources, IncludeType type, DateTime now); 10 | Include RegisterInclude(string source, IncludeType type); 11 | IncludeCombination GetCombination(string key); 12 | IEnumerable GetAllIncludes(); 13 | IDictionary GetAllCombinations(); 14 | void UpdateCombination(IncludeCombination combination); 15 | void Clear(); 16 | } 17 | } -------------------------------------------------------------------------------- /src/MvcContrib.TestHelper/MvcContrib.TestHelper/Ui/InputTesterBase.cs: -------------------------------------------------------------------------------- 1 | namespace MvcContrib.TestHelper.Ui 2 | { 3 | public abstract class InputTesterBase : IInputTester 4 | { 5 | protected string _inputName; 6 | protected TInputValue _value; 7 | 8 | protected InputTesterBase(TInputValue value, string name) 9 | { 10 | _value = value; 11 | _inputName = name; 12 | } 13 | 14 | #region IInputTester Members 15 | 16 | public abstract void AssertInputValueMatches(IBrowserDriver browserDriver); 17 | 18 | public abstract void SetInput(IBrowserDriver browserDriver); 19 | 20 | #endregion 21 | } 22 | } -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.PortableArea/LoginPortableArea/Login/Views/Login/ForgotPassword.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> 2 | <%@ Import Namespace="LoginPortableArea.Login.Controllers"%> 3 | <%@ Import Namespace="LoginPortableArea.Login.Models"%> 4 | <%@ Import Namespace="MvcContrib.UI.InputBuilder.Views"%> 5 | 6 | 7 | Login 8 | 9 | 10 | 11 | 12 |

Forgot Password

13 | <%=Html.InputForm() %> 14 |
15 | -------------------------------------------------------------------------------- /src/MVCContrib.UnitTests/ActionResults/RedirectToRouteResultTester.cs: -------------------------------------------------------------------------------- 1 | using System.Web.Mvc; 2 | using MvcContrib.ActionResults; 3 | using NUnit.Framework; 4 | 5 | namespace MvcContrib.UnitTests.ActionResults 6 | { 7 | [TestFixture] 8 | public class RedirectToRouteResultTester 9 | { 10 | [Test] 11 | public void Should_build_route_values_for_expression() 12 | { 13 | var redirect = new RedirectToRouteResult(c => c.Index()); 14 | redirect.RouteValues["Controller"].ShouldEqual("Test"); 15 | redirect.RouteValues["Action"].ShouldEqual("Index"); 16 | } 17 | 18 | private class TestController : Controller 19 | { 20 | public ActionResult Index() { return null; } 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /src/MvcContrib.TestHelper/MvcContrib.TestHelper/Ui/InputTesterFactory.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | namespace MvcContrib.TestHelper.Ui 5 | { 6 | public class InputTesterFactory : List 7 | { 8 | public static Func> Default = () => new InputTesterFactory(); 9 | 10 | public InputTesterFactory() 11 | { 12 | Add(new TextInputTesterFactory()); 13 | } 14 | } 15 | 16 | public class MultipleInputTesterFactory : List 17 | { 18 | public static Func> Default = () => new MultipleInputTesterFactory(); 19 | 20 | } 21 | } -------------------------------------------------------------------------------- /src/MvcContrib.FluentHtml/Behaviors/IBehavior.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using MvcContrib.FluentHtml.Elements; 3 | 4 | namespace MvcContrib.FluentHtml.Behaviors 5 | { 6 | /// 7 | /// Generic implementation of behavior for an 8 | /// 9 | /// 10 | public interface IBehavior : IBehaviorMarker 11 | { 12 | /// 13 | /// Perform behavior modification on an object. 14 | /// 15 | /// The object to modify based on the behavior. 16 | void Execute(T behavee); 17 | } 18 | 19 | [Obsolete("Use IBehavior instead.")] 20 | public interface IBehavior : IBehavior { } 21 | } -------------------------------------------------------------------------------- /src/MvcContrib.FluentHtml/Elements/ResetButtonBase.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using MvcContrib.FluentHtml.Behaviors; 3 | using MvcContrib.FluentHtml.Html; 4 | 5 | namespace MvcContrib.FluentHtml.Elements 6 | { 7 | /// 8 | /// Base class for HTML input element of type 'Reset.' 9 | /// 10 | public abstract class ResetButtonBase : Input where T : ResetButtonBase 11 | { 12 | protected ResetButtonBase(string text) : this(text, null) { } 13 | 14 | protected ResetButtonBase(string text, IEnumerable behaviors) 15 | : base(HtmlInputType.Reset, text == null ? null : text.FormatAsHtmlName(), null, behaviors) 16 | { 17 | elementValue = text; 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /latestversion/ReleaseDescription.txt: -------------------------------------------------------------------------------- 1 | _Please see the Change Log for a complete list of changes._ 2 | 3 | [image:MVC BootCamp|http://www.headspringsystems.com/banners/mvcbootcamp-fullbanner-1.jpg|http://www.mvcbootcamp.com/?utm_source=mvccontrib&utm_medium=banner&utm_term=&utm_content=1&utm_campaign=mvctraining] 4 | 5 | Description of the releases: 6 | 7 | *_MvcContrib.Release.zip_* 8 | * MvcContrib.dll 9 | * MvcContrib.TestHelper.dll 10 | 11 | *_MvcContrib.Extras.Release.zip_* 12 | * The extra view engines / controller factories and other functionality which is in the project. 13 | * This file includes the main MvcContrib assembly. 14 | * Samples are included in the release. 15 | * You do not need MvcContrib if you download the Extras. -------------------------------------------------------------------------------- /src/MvcContrib.FluentHtml/Elements/SubmitButtonBase.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using MvcContrib.FluentHtml.Behaviors; 3 | using MvcContrib.FluentHtml.Html; 4 | 5 | namespace MvcContrib.FluentHtml.Elements 6 | { 7 | /// 8 | /// Base class for HTML input element of type 'submit.' 9 | /// 10 | public abstract class SubmitButtonBase : Input where T : SubmitButtonBase 11 | { 12 | protected SubmitButtonBase(string text) : this(text, null) { } 13 | 14 | protected SubmitButtonBase(string text, IEnumerable behaviors) 15 | : base(HtmlInputType.Submit, text == null ? null : text.FormatAsHtmlName(), null, behaviors) 16 | { 17 | elementValue = text; 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/Samples/MvcContrib.Samples.SubControllers/Website/Controllers/HomeController.cs: -------------------------------------------------------------------------------- 1 | using System.Web.Mvc; 2 | using MvcContrib.Filters; 3 | using Website.Controllers.SubControllers; 4 | 5 | namespace Website.Controllers 6 | { 7 | [HandleError] 8 | [SubControllerActionToViewData] 9 | public class HomeController : Controller 10 | { 11 | public ActionResult Index(FirstLevelSubController firstLevel) 12 | { 13 | ViewData["Title"] = "Home Page"; 14 | ViewData["Message"] = "Welcome to ASP.NET MVC!"; 15 | ViewData["text"] = "I am a top-level controller"; 16 | 17 | return View(); 18 | } 19 | 20 | public ActionResult About() 21 | { 22 | ViewData["Title"] = "About Page"; 23 | 24 | return View(); 25 | } 26 | } 27 | } -------------------------------------------------------------------------------- /src/MVCContrib/UI/InputBuilder/Views/TypeViewModelExtensions.asax.cs: -------------------------------------------------------------------------------- 1 | using MvcContrib.UI.InputBuilder.Views; 2 | 3 | namespace MvcContrib.UI.InputBuilder 4 | { 5 | public static class ArrayTypeViewModelExtensions 6 | { 7 | public static bool HasDeleteButton(this TypeViewModel model) 8 | { 9 | return !(model.AdditionalValues.ContainsKey(ArrayPropertyConvention.HIDE_DELETE_BUTTON) && (bool)model.AdditionalValues[ArrayPropertyConvention.HIDE_DELETE_BUTTON]); 10 | 11 | } 12 | public static bool HasAddButton(this TypeViewModel model) 13 | { 14 | return !(model.AdditionalValues.ContainsKey(ArrayPropertyConvention.HIDE_ADD_BUTTON) && (bool)model.AdditionalValues[ArrayPropertyConvention.HIDE_ADD_BUTTON]); 15 | 16 | } 17 | } 18 | } --------------------------------------------------------------------------------