Commit Graph

163 Commits

Author SHA1 Message Date
Shannon
6398f1e216 Creates ITypeFinder interface and simplifies type finder with TypeFinderExtensions, moves GetTypeByName to TypeHelper using assembly name parsing instead of scanning every assembly. 2019-11-08 14:26:06 +11:00
Shannon
7a4cafd425 fixing tests 2019-11-07 22:22:09 +11:00
Shannon
3a78e48d3a fixing tests 2019-11-07 21:46:04 +11:00
Shannon Deminick
5121df5b2e Merge pull request #6764 from Adolfi/v8/dev-umbracoapicontroller-testable
UmbracoApiController Testable
2019-10-25 10:01:16 +11:00
Dennis Adolfi
faeb3e052a * Removed unnessasary test. 2019-10-23 07:30:16 +02:00
Lars-Erik Aabech
d9c1853543 Totally helpful exception message for test classes that can't be resolved 2019-10-21 23:07:36 +02:00
Lars-Erik Aabech
7bd8dee6a2 Changed TestOptionAttributeBase type resolving to use Assemby instead of String 2019-10-21 23:01:23 +02:00
Dennis Adolfi
8d70d53ed6 * Added test for mocking UmbracoApiController dependencies with injected UmbracoMapper
* Added test for mocking UmbracoApiController dependencies with ServiceLocator resolved UmbracoMapper for backward compability.
2019-10-18 14:27:55 +02:00
Lars-Erik Aabech
c56f6c161e Don't throw when type not found by TestOptionAttribute 2019-10-15 23:57:54 +02:00
Lars-Erik Aabech
1b8f9e91df TestOptionAttibute seam to discover testassemblies 2019-10-15 23:29:13 +02:00
Shannon
f2a22e9843 Ensure we throw an exception when a fatal Exception is caught instead of swallowing 2019-08-19 22:07:22 +10:00
Shannon
890309bc11 Fixes SetAllFastSorted and sort orders 2019-08-19 17:18:45 +10:00
Shannon
16d8f8846e Adds PanicException with details instead of throwing "panic" strings 2019-07-30 22:40:15 +10:00
Stephan
3d3647b476 Fix tests 2019-07-02 10:11:51 +02:00
Stephan
983144c3f9 Unit-test published content linked-list children 2019-05-29 17:01:12 +02:00
Stephan
be93773399 Merge branch v8/dev into v8/feature/5170-IPublishedContent 2019-04-24 08:51:25 +02:00
Stephan
11ef00c63d Refactor IPublishedContent.Url() 2019-04-23 08:27:49 +02:00
Rasmus John Pedersen
d0701ae34e Add media url provider support 2019-04-16 15:36:21 +02:00
Shannon
bff920fa50 Merge branch 'v8/dev' into v8/feature/284-auto-mapper
# Conflicts:
#	src/Umbraco.Core/Composing/SetCollectionBuilderBase.cs
2019-04-05 00:58:56 +11:00
Stephan
7a6884d208 Rename mapper stuff 2019-04-03 10:39:49 +02:00
Stephan
961cbf694e Simplify our Poco mappers 2019-03-29 09:46:36 +01:00
Stephan
72bdf56ddf Cleanup and fix mappers 2019-03-27 09:15:32 +01:00
Stephan
9ecd63eaed Move to UniqueMediaPathScheme 2019-02-21 12:20:10 +01:00
Stephan
5edd61107f Combined Guids media path scheme 2019-02-21 11:28:51 +01:00
Stephan
7185089f1d Move sections to their own namespace 2019-02-18 11:22:25 +01:00
Stephan
cdae0adf52 Merge branch 'temp8' into temp8-umbhelper-vs-umbcontext-cleanup 2019-02-15 10:17:14 +01:00
Stephan
64154da4e4 Get LocalTempPath in GlobalSettings 2019-02-15 09:45:51 +01:00
Shannon
45f7e71787 Merge remote-tracking branch 'origin/temp8' into temp8-umbhelper-vs-umbcontext-cleanup 2019-02-15 13:09:26 +11:00
Shannon
6f7e1cac3e Merge branch 'temp8' into temp8-contexts 2019-02-15 12:55:17 +11:00
Shannon
02e3a8f19c Removes all inter-dependencies between UmbracoContext, UmbracoHelper and MembershipHelper and moves Html methods to HtmlHelper extensions. This simplifies UmbracoHelper and MembershipHelper to not require huge dependencies and splits the logic in a nicer fashion instead of wrapping everything 2019-02-15 11:43:56 +11:00
Stephan
abceda7750 Kill UmbracoContext.Current 2019-02-14 10:39:49 +01:00
Stephan
7660e9fb25 Reorganize composition code 2019-02-14 09:15:47 +01:00
Bjarke Berg
60ca85fe25 Introduced the forms section in the sections menu. 2019-02-11 15:32:24 +01:00
Stephan
2092156db3 Cleanup 2019-02-07 12:27:19 +01:00
Shannon
3b12e0b72a Updates ContentBase to track the original PropertyType's which means we don't ever need to look them up again, adds notes about this too since it seems it is probably unnecessary to begin with. 2019-02-07 13:28:23 +11:00
Shannon
123daed990 Removes the need for .Current in some places, adds TODO notes to test a theory, removes IUmbracoEntity from ISimpleContentType since all tests seem to pass without it and because the SimpleContentTypeMapper doesn't actually use ISimpleContentType i don't think it's needed, we'll see what the tests say. 2019-02-07 12:43:11 +11:00
Shannon
c04da30547 Merge branch 'temp8' into temp8-contentAndType
# Conflicts:
#	src/Umbraco.Core/Models/Content.cs
#	src/Umbraco.Core/Models/ContentBase.cs
#	src/Umbraco.Tests/Models/ContentTests.cs
2019-02-07 11:41:06 +11:00
Stephan
0be5ff64bc Be friendly 2019-02-06 15:05:56 +01:00
Stephan
b260c18056 Refactor IContent vs IContentType 2019-02-06 13:06:31 +01:00
Shannon
ad5b166f3f Fixes tests, simplifies constructors 2019-02-01 15:44:32 +11:00
Shannon
c2ff32aaab Fixing tests, don't expose UmbracoContext on UmbracoHelper, fixing all of the editor constructors 2019-02-01 15:24:07 +11:00
Shannon
0c4712de56 Merge branch 'temp8' into temp8-macros-dont-render-and-other-macro-bugs
# Conflicts:
#	src/Umbraco.Tests/Testing/TestingTests/MockTests.cs
#	src/Umbraco.Tests/Web/Mvc/SurfaceControllerTests.cs
#	src/Umbraco.Web/Templates/TemplateRenderer.cs
2019-02-01 11:33:13 +11:00
Stephan
a6f9598a23 Introduce IPublishedRouter 2019-01-31 11:07:45 +01:00
Shannon
7b55d2f1b2 New IMacroRenderer and ITemplateRenderer and hides underlying logic for these in internal classes. Massively cleans up the macro rendering logic (almost makes sense now), removes unused macro code, injects UmbracoHelper wherever it's needed (not creating manually), fixes UmbracoHelper to have it's services injected, no more empty services, allows setting the AssignedContentItem on the UmbracoHelper and ensures it's lifespan is Transient, updates all corresponding ctors. Fixes macro rendering, ensures the correct culture variation is assigned, and that we can render macros for any given IPublishedContent, not just the one assigned in the request. 2019-01-31 15:09:31 +11:00
Chris Houston
193e24afd2 Fixing all the TODO, FIXME & HACK comments so they all follow the same layout. 2019-01-27 11:16:00 +01:00
Stephan
d9cc1f4cb8 Fix more tests 2019-01-22 18:25:02 +01:00
Stephan
876056f0bb Merge branch temp8 into temp8-appCaches 2019-01-18 14:54:08 +01:00
Stephan
07238b54e1 Merge branch 'temp8-tree-sections-no-more-xml' into temp8 2019-01-18 10:59:04 +01:00
Callum Whyte
cee1171d39 Removing masterpages support from V8 (#3971) 2019-01-18 10:53:38 +01:00
Stephan
a7a3fca8a8 Merge branch 'temp8' into temp8-tree-sections-no-more-xml 2019-01-18 09:23:55 +01:00