Shannon
defc9d3bc2
Updated all repo's to have their correct ctor's with their correct dependencies. Updated them all to accept ILogger updated all other dependencies with the same without breaking anything since all is internal, or obsoleted other public methods. Updates lots of the tests with mock instances instead, now more tests have less singleton dependencies, easier to test, much clearer and more IoC driven. Updated unit tests to supply the ILogger for required objects, tests should run faster now since most things are just mocked.
2015-01-09 10:51:15 +11:00
Shannon
5a9874bfad
Fixes U4-3894 Date picker with time resets to "måndag januari 1, 0001" on Republish entire site
2014-01-29 11:19:59 +11:00
Shannon
330732323f
Hugely simplifies setting properties from macro parameters on user control macros with tests.
2013-11-11 12:16:30 +11:00
Shannon
a348177126
Fixes object extensions and tests
2013-11-02 15:18:08 +11:00
Shannon
6fd05ab6be
Listens to new member events for cache refreshing
2013-10-18 16:23:33 +11:00
Shannon
fca605287b
Merge remote-tracking branch 'origin/6.2.0-membershipprovider' into 7.0.0
...
Conflicts:
src/Umbraco.Tests/ObjectExtensionsTests.cs
src/Umbraco.Web/WebBootManager.cs
2013-10-18 16:18:55 +11:00
Marc Brooks
4d5b330567
Reduce Exceptions thrown during type conversions.
...
There are tons of places where null, blank or empty strings are being
converted to primative types (like int,, long, etc) or other ValueTypes
(like Guid, DateTime, etc.). When this is attempted, Exceptions are
thrown (and caught/swallowed) to allow for value defaulting. Since this
happens all the time in normal operation, tons of Exceptions are being
thrown. By switching to the TryParse methods available on all primative
types and the interesting ValueTypes, we can greatly speed the
processing of content data.
2013-10-17 19:12:08 -05:00
Shannon
1ac2ccb8c2
makes public the ApplicationTreeService on the services context
2013-10-17 11:26:34 +11:00
Shannon
371b1817ea
Merge remote-tracking branch 'origin/7.0.0' into 7.0.0--property-editor-guid-to-alias
...
Conflicts:
src/Umbraco.Core/Configuration/LegacyUmbracoSettings.cs
src/Umbraco.Core/Persistence/Migrations/Syntax/Alter/Expressions/AlterColumnExpression.cs
src/Umbraco.Core/PropertyEditors/TinyMcePropertyEditorValueConverter.cs
src/Umbraco.Core/XmlHelper.cs
src/Umbraco.Tests/ObjectExtensionsTests.cs
src/Umbraco.Web/PropertyEditors/RteMacroRenderingPropertyEditorValueConverter.cs
src/Umbraco.Web/Routing/DefaultUrlProvider.cs
src/Umbraco.Web/Umbraco.Web.csproj
src/Umbraco.Web/umbraco.presentation/macro.cs
2013-09-17 00:27:17 +10:00
Shannon
86a5d16e25
Added moq (need to replace all rhino mock later) allowing us to nicely mock umbraco settings, fixing up more unit tests.
2013-09-17 00:14:15 +10:00
Shannon
9f1d212375
Implements: U4-2824 Type Converter for string type with unit test
2013-09-11 11:57:15 +10:00
Shannon Deminick
860c8c1002
Fixes: #U4-482, #U4-549. Macro cache streamlining - ensures it is cleared based on event handling instead of inline everywhere
...
in code. Unit tests for CacheHelper, unit tests for umbraco.macro, updates to
ObjectExtensions.TryConvertTo + unit tests, enhanced disposable method of ApplicationContext.
2013-03-12 22:58:21 +04:00
leekelleher
6c1bf4b85f
Added unit test for ObjectExtensions TryConvertTo<DateTime>.
...
Modified CustomBooleanTypeConverter to accept an empty string as a FALSE.
2012-11-10 14:09:27 +00:00
Shannon Deminick
c3747d70ce
Added ObjectExtensionsTests, Added functionality for MVC to render any macro types (i.e. razor and xslt, etc..)
...
Adds UmbracoHelper as a property to the RenderViewPage for MVC. Tested rendering Xslt and Razor macros with and
without parameters and works well.
Next we need to get the RTE rendering with macros embedded in MVC.
2012-09-03 07:54:09 +07:00