Commit Graph

555 Commits

Author SHA1 Message Date
Morten Christensen
5540959e71 Correcting ability to set guid Key, as it was overwritten when saving.
Adding unit tests to verify get/set Key.
Adding unit tests to verify GetById with guid Key.
Adding overload to GetById with guid Key to supplement the int Id.
2012-11-13 19:07:43 -01:00
Morten Christensen
f7b7b90bed Correcting a new issues after merge 2012-11-13 15:13:06 -01:00
Morten Christensen
59630b99b4 Merge with 4.11.0 2012-11-13 14:33:28 -01:00
Morten Christensen
c9c160bc29 Adding unit test for saving bulk content, and adding lazy collection save overload.
Adding AuditTrail class and test case.
2012-11-13 14:30:05 -01:00
Morten Christensen
50dc9f2b7b Resolving UserService usage in ContentService to set Creator/Writer.
Adding audit class for future implementation.
2012-11-12 08:39:29 -01:00
Morten Christensen
00e3f16d30 A few corrections after running the unit tests 2012-11-12 08:00:51 -01:00
Morten Christensen
a4d4411cca Moving services from Web proj to Core proj. 2012-11-12 07:40:11 -01:00
Morten Christensen
d1db48eb72 Moving PublishingStrategy to Core proj. 2012-11-12 07:33:22 -01:00
Morten Christensen
4dd5c72659 Ensuring that possible notifications and permissions are removed when deleting a template. 2012-11-12 07:22:09 -01:00
Morten Christensen
8fc942d3b0 Adding internal constructor for testing with predefined IFileSystems. 2012-11-12 07:19:10 -01:00
Morten Christensen
d0c79052e8 Adding SetDefaultTemplate on ContentType.
Correcting UOW for FileService, which needs two providers - one for files and one for data.
2012-11-12 07:16:54 -01:00
Shannon Deminick
9e320700e2 Fixes: #U4-1178, adds another strongly typed overload to GetPropertyValue<T> and adds more unit tests. 2012-11-12 10:50:23 +05:00
Shannon Deminick
65e3b7f951 Merge 2012-11-12 08:24:36 +05:00
Shannon Deminick
156f145c69 Updated the build manager to find instances based on persisted cache of previous lookups but uses BuildManager to do so, after
some benchmark unit tests against loading a type from an assembly this is about 100% faster. Updated the UmbracoModule to write more diagnostics
for benchmark debugging. Have basically reduced the startup time to approx 50% of what it used to be based on the current
benchmarks run. Previously app startup on my machine was about 5 seconds, now after the first startup it is about 2.5 seconds.
2012-11-12 08:10:12 +05:00
Morten Christensen
4be2207f50 Correcting condition for inserting allowed templates. Thank you valuable unit tests. 2012-11-11 19:11:36 -01:00
Morten Christensen
61afe225be Adding Template to ContentType and Content objects and updating repositories accordingly.
Removing templates from the mocks for the time being.
2012-11-11 19:02:45 -01:00
Morten Christensen
13c980c14b Dedicated to Matt <3 2012-11-11 18:07:52 -01:00
Morten Christensen
689c229846 Adding methods to delete specific versions from content by version id or date. 2012-11-11 14:55:48 -01:00
Morten Christensen
564d370392 Extending PetaPoco's sql builder with strong types plus added a few unit tests to verify output. 2012-11-11 13:52:28 -01:00
Morten Christensen
eb4fc26e1f Implementing last methods in TemplateRepository plus added a TemplateFactory for mapping dtos-entities.
Removing old FileOnly-repo version of the TemplateRepository.
Refactoring FileService to use new repository.
2012-11-11 12:20:14 -01:00
Morten Christensen
dffc6ca1a0 Refactoring entities with Users to only add Id to minimize the object graph.
Moved getting an IProfile to an extension method, as its not commonly used.
Removing dependencies in ContentService, so the Services and context can be moved to Core proj.
Implementing Template repository to use both filesystem and db.
2012-11-11 06:53:02 -01:00
Shannon Deminick
083bab0528 Added HashCodeCombiner and unit tests to support. Added ability to create a hashed file based on scanned assemblies in the
PluginManager and added a cached plugin xml file to the PluginManager. Now we don't actually scan any assemblies on app startup
during plugin finding if none of the DLLs have changed. Added trace statements to the UmbracoModule for better benchmarking for
how long a full request takes to load from start to finish.
2012-11-11 09:09:06 +05:00
leekelleher
ee3e3787a8 PropertyEditorConverters - reusing TryConvertTo<T>, removing duplicate code. 2012-11-10 21:41:40 +00: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
Morten Christensen
e832da5bfc Refactoring a few repositories to use the UserRepository for getting an IProfile for a Creator/Writer 2012-11-09 20:26:47 -01:00
Morten Christensen
270d75ecd1 Implements User- and UserTypeRepository.
Implements User- and UserTypeMapper/Factory.
Update ContentRepository tests to use RepositoryResolver.
2012-11-09 19:54:10 -01:00
Morten Christensen
e3d5fa766d Starting implementation of the UserRepository.
Fixing unit tests.
2012-11-09 14:45:28 -01:00
Morten Christensen
fadac469e9 Adding unit tests for Script- and StylesheetRepository. 2012-11-09 11:56:59 -01:00
Morten Christensen
9049b079c8 Adding unit tests for RelationRepository.
Correcting delete clauses for Content to ensure relations are also deleted.
2012-11-09 09:40:06 -01:00
Morten Christensen
4dfb4df952 Adding unit tests for RelationTypeRepository.
Correcting a few mappers and adding identityseed for RelationType plus adding default data.
2012-11-09 08:49:48 -01:00
Morten Christensen
c5d86e9525 Merge with 4.10.0 2012-11-08 18:29:07 -01:00
Morten Christensen
54df4855bc Fixing issue with deserializing macros and adding some more macro related tests. 2012-11-08 18:27:22 -01:00
Morten Christensen
705fed7a5e Adding unit tests for DictionaryRepository. 2012-11-08 15:55:44 -01:00
Sebastiaan Janssen
00a625fb7f Recursion was wrong on this one.
Fixed #U4-1147
2012-11-08 12:41:18 -01:00
Morten Christensen
439098e3d7 Adding unit tests for LanguageRepository 2012-11-08 12:21:40 -01:00
Morten Christensen
4afbd1c38e Adding unit tests for DataTypeDefinitionRepository 2012-11-08 11:55:36 -01:00
Morten Christensen
ac693134bb Adding unit tests for MediaRepository 2012-11-08 09:43:35 -01:00
sitereactor
d4e6dd9711 Correcting merge error by removing file ref. 2012-11-08 08:04:12 -01:00
sitereactor
5541ba8a30 Merge with 4.10.0 2012-11-08 08:00:20 -01:00
Shannon Deminick
f4dc045561 Removed MediaFileSystemExtensions and just added the methods to the MediaFileSystem which are more discoverable.
Added Code Annotations to all file system classes pointing to the new #U4-1156 tracking item to publicize.
2012-11-08 08:27:38 +05:00
sitereactor
a130642b02 Correcting .Append to .Where in repositories for base queries.
Adding unit tests for MediaTypeRepository.
2012-11-07 14:41:28 -01:00
sitereactor
bfdc204d08 A bit of refactoring and moving the services back and forth 2012-11-07 13:56:52 -01:00
Shannon Deminick
5132d66924 Created code annotation attributes and descriptions 2012-11-07 09:55:21 +05:00
Shannon Deminick
67d9e578f5 Fixes: #U4-919, we will just use real classes for extension methods and all custom file systems like the MediaFileSystem must inherit from
FileSystemWrapper
2012-11-07 09:30:40 +05:00
Shannon Deminick
b9d53ceac8 Fixes more of U4-1140, ensure that only legacy objects are returned from the dynamic stuff in the razor macros. Adds unit test for it. 2012-11-07 03:49:32 +05:00
sitereactor
372f7a7725 Refactoring UpdateContentCache strategy for generating xml cache upon publishing indepedent of the legacy umbraco.content.Instance class. 2012-11-06 20:03:36 -01:00
sitereactor
9b77eefb4c Adding stragies plus tests for publishing and updating the xml cache. 2012-11-06 15:17:58 -01:00
sitereactor
0b29a08d1d Adding proper identity check to File entity. 2012-11-06 13:12:33 -01:00
sitereactor
fba2ce8a7a Refactoring the FileRepository to implement IUnitOfWorkRepository, so the files use the same transaction approach as database entities. 2012-11-06 13:07:18 -01:00
sitereactor
ec9880968f Moving interfaces for services to Umbraco.Core.
Adding xml extensions for Content to generate xml for the xml cache.
Adding test for xml generation.
2012-11-06 10:47:14 -01:00