Bjarke Berg
63bfc4c2c0
Move constants
2019-11-05 14:55:42 +01:00
Bjarke Berg
befcabfced
Move constants
2019-11-05 13:28:26 +01:00
Stephan
67e4703821
CacheHelper becomes AppCaches
2019-01-17 08:34:29 +01:00
Stephan
9341278492
Cleanup CacheHelper
2018-07-13 12:11:00 +02:00
Stephan
7a615133ff
Renormalize
2018-06-29 19:52:40 +02:00
Stephan
af43ea0beb
Reorg code, move dtos
2017-12-28 09:06:33 +01:00
Stephan
e4b375f72d
UnitOfWork RIP, build tests
2017-12-15 11:19:03 +01:00
Stephan
84f9242aa0
Persistence Shakeup
2017-12-07 16:45:25 +01:00
Stephan
fcf2b27953
More content refactoring (tests)
2017-11-10 11:27:12 +01:00
Stephan
ee1941b9bf
Refactor ISqlContext and SqlTemplates
2017-09-22 18:30:38 +02:00
Stephan
1341a37f2b
Cleanup Constants.ObjectTypes
2017-09-19 18:19:05 +02:00
Stephan
c76403077f
Normalize cr/lf/tab
2017-07-20 11:21:28 +02:00
Stephan
8561d85f7a
porting 7.6-rc1 into 8
2017-05-24 12:25:39 +02:00
Stephan
49d54f497d
Persistence reorg
2016-12-16 17:20:51 +01:00
Stephan
d17959d1a8
Tests reorg
2016-12-16 10:40:14 +01:00
Stephan
a49af20275
More persistence layer refactoring
2016-11-29 10:31:25 +01:00
Stephan
8e056aba66
Merge origin/dev-v7.6 into dev-v8-zbwip (builds, not tested)
2016-11-23 10:33:12 +01:00
Stephan
224986d56c
Trying to cleanup and refactor tests
2016-11-07 18:32:44 +01:00
Stephan
341e817fd5
Get tests to run, troubleshoot
2016-10-17 11:00:18 +02:00
Stephan
aa8b8c7736
Resvolution - MappingResolver
2016-09-19 16:30:40 +02:00
Stephan
4d852102e8
Refactor tests
2016-05-23 13:56:58 +02:00
Shannon
f9ba3fe76f
Merge branch 'dev-v8' into dev-v8-ExamineV2
...
# Conflicts:
# src/Umbraco.Core/Persistence/Repositories/VersionableRepositoryBase.cs
# src/Umbraco.Core/Plugins/PluginManager.cs
# src/Umbraco.Core/Services/ContentService.cs
# src/Umbraco.Core/Services/IContentService.cs
# src/Umbraco.Core/Umbraco.Core.csproj
# src/Umbraco.Tests/Persistence/Repositories/NotificationsRepositoryTest.cs
# src/Umbraco.Tests/Services/ContentServiceTests.cs
# src/Umbraco.Tests/Services/MediaServiceTests.cs
# src/Umbraco.Tests/Services/ThreadSafetyServiceTest.cs
# src/Umbraco.Web.UI/config/ClientDependency.config
# src/Umbraco.Web/Editors/ContentController.cs
# src/UmbracoExamine/UmbracoContentIndexer.cs
2016-05-19 16:32:22 +02:00
Shannon
8127731f72
Namespace and file cleanup - Profiling --> Logging, root cache stuff moved to Cache, XmlHelper --> Xml, TypeFinder, etc.. --> Plugins
2016-05-18 23:34:56 +02:00
Stephan
edda877fd6
Merge origin/dev-v8 into dev-v8-ExamineV2
2016-05-17 13:21:47 +02:00
Stephan
715e03d1c5
U4-6147 - fix tests
2016-05-03 11:15:04 +02:00
Shannon
3c446cbf82
Adds IQueryFactory property to IDatabaseFactory, DatabaseContext.
...
Changes exposed Query<T> to correct IQuery<T>
Creates interface for QueryFactory: IQueryFactory
Updates all repositories with these changes
2016-05-02 15:38:45 +02:00
Stephan
dbaede43af
U4-6147 - GetUnitOfWork becomes CreateUnitOfWork
2016-05-02 12:24:13 +02:00
Stephan
be32448426
U4-6147 - cleanup persistence units of work (in progress)
2016-05-02 12:12:21 +02:00
Stephan
578cb6eafb
U4-6147 - repositories are not disposable (in progress)
2016-04-29 19:14:02 +02:00
Stephan
aceaf4b15d
Core.Persistence - massive cleanup
2016-04-13 17:33:09 +02:00
Stephan
365a01a476
From PetaPoco to NPoco ( #1207 )
...
* NPoco - 2.x (builds)
* NPoco - v3.1 (does not build)
* NPoco - builds
* NPoco - configure database factory (tests fail)
* Pick fix from 7.4
* NPoco - stock v3.1 - sort-of working
* NPoco - fix merge
* Fix Newtonsoft.Json in web.Template.Debug.config
* NPoco - fix SELECT *
* NPoco - fixing repositories
* NPoco - fix EntityRepository
* NPoco - fix EntityRepository
* NPoco - cosmetic
* NPoco - use 3.1.0-u001 from github/zpqrtbnk/NPoco
* Fixes build, NPoco needed to be referenced in the cms and UmbracoExamine projects
* Fixes lots of tests
* fixes more tests
* NPoco - bugfixing
* Bugfix CacheHelper in tests
* Bugfix connection mocking in tests
* NPoco - inject database in Sql.Select<>
* NPoco - discovery retry policy only once
* Enable C# 6 for Umbraco.Core
* NPoco - introduce UmbracoSql, cleanup
* NPoco - more cleanup and fixing
* NPoco - fix UserRepository
* Optimize InGroupsOf
* Implement UmbracoDatabase.FetchByGroups
* NPoco - fix Select
* NPoco - simplify GetPagedResultsByQuery
* Cherry-pick DisableBrowserCacheAttribute fix from 7.4
* Upgrade NPoco to use Sql<TContext>
* U4-8257 - cleanup relators
* 4-8257 - cleanup more relators
* Upgrade NPoco with more OOTB version
* fixes a couple tests, changes double check lock to Lazy<T>
2016-04-12 15:11:07 +02:00
Shannon
3e18c93cf5
More singleton reduction, created new IMappingResolver which is used by the Query<T> object instead of relying on a singleton, creates a new QueryFactory to create Query<T>, removes all standalone stuff (will create that again later). It builds, but most tests will still be failing.
2015-02-22 23:09:20 +01:00
Shannon
905e58e3b6
Completes: U4-6104 Remove SqlSyntaxContext - quite a large refactor and cleanup since the SqlSyntaxContext was used everywhere :( haven't run tests, etc... yet but the project builds now.
2015-02-22 21:36:02 +01:00
Shannon
c94eff9089
Merge remote-tracking branch 'origin/7.3.0' into dev-v8
...
Conflicts:
src/Umbraco.Core/Umbraco.Core.csproj
src/Umbraco.Tests/Persistence/Repositories/MediaRepositoryTest.cs
src/Umbraco.Tests/Routing/ContentFinderByAliasTests.cs
src/Umbraco.Tests/Routing/ContentFinderByAliasWithDomainsTests.cs
src/Umbraco.Tests/Routing/ContentFinderByNiceUrlWithDomainsTests.cs
src/Umbraco.Tests/Routing/DomainsAndCulturesTests.cs
src/Umbraco.Tests/Routing/UrlsWithNestedDomains.cs
src/Umbraco.Tests/Routing/uQueryGetNodeIdByUrlTests.cs
src/Umbraco.Web/Cache/CacheRefresherEventHandler.cs
src/umbraco.MacroEngines/packages.config
src/umbraco.MacroEngines/umbraco.MacroEngines.csproj
src/umbraco.cms/businesslogic/Property/Property.cs
src/umbraco.cms/businesslogic/datatype/DataTypeDefinition.cs
2015-01-23 12:25:07 +11:00
Shannon
7545c0c1da
Adds the DomainRepository with tests
2015-01-21 17:03:56 +11:00
Shannon
f9159a0afc
Merge remote-tracking branch 'origin/7.3.0' into dev-v8
...
Conflicts:
build/UmbracoVersion.txt
src/Umbraco.Core/Configuration/UmbracoVersion.cs
src/Umbraco.Core/CoreBootManager.cs
src/Umbraco.Core/DataTypesResolver.cs
src/Umbraco.Core/PropertyEditors/PropertyEditorValueConvertersResolver.cs
src/Umbraco.Core/Umbraco.Core.csproj
src/Umbraco.Tests/CodeFirst/Definitions/ContentTypeDefinitionFactory.cs
src/Umbraco.Tests/CodeFirst/TypeInheritanceTest.cs
src/Umbraco.Tests/Macros/MacroTests.cs
src/Umbraco.Tests/Persistence/Repositories/ContentRepositoryTest.cs
src/Umbraco.Tests/Persistence/Repositories/MediaRepositoryTest.cs
src/Umbraco.Tests/Plugins/PluginManagerTests.cs
src/Umbraco.Tests/Plugins/TypeFinderTests.cs
src/Umbraco.Tests/Services/ThreadSafetyServiceTest.cs
src/Umbraco.Tests/TestHelpers/BaseDatabaseFactoryTest.cs
src/Umbraco.Tests/TestHelpers/BaseSeleniumTest.cs
src/Umbraco.Web.UI/Umbraco.Web.UI.csproj
src/Umbraco.Web.UI/config/ClientDependency.config
src/Umbraco.Web/umbraco.presentation/umbraco/Trees/loadStylesheetProperty.cs
src/Umbraco.Web/umbraco.presentation/umbraco/Trees/loadStylesheets.cs
src/Umbraco.Web/umbraco.presentation/umbraco/Trees/loadTemplates.cs
src/Umbraco.Web/umbraco.presentation/umbraco/settings/stylesheet/property/EditStyleSheetProperty.aspx.cs
src/umbraco.cms/businesslogic/CMSNode.cs
src/umbraco.cms/businesslogic/propertytype/propertytype.cs
src/umbraco.cms/businesslogic/web/StyleSheet.cs
src/umbraco.editorControls/tinyMCE3/TinyMCE.cs
2015-01-19 13:16:56 +11:00
Shannon
10aad7e048
More decoupling from the SqlSyntaxContext singleton, repositories now all use an injected SqlSyntaxProvider, the respository factory, service context, etc... is now much more streamlined with classes created with a propery dependency chain.
2015-01-13 19:38:23 +11:00
Shannon
cc396c8b96
Removes more unecessary singletons and simplifies/refactors some internal parts like the ctors for the ServiceContext, DatabaseContext. No more RepositoryResolver or SqlSyntaxProvidersResolver these are entirely uncessary and complicate things.
2015-01-13 18:19:52 +11:00
Shannon
d5c8430cd2
Removes all IRepositoryCacheProvider's, we are just using a single cache construct to which is much easier to manage.
2015-01-13 13:33:39 +11:00
Shannon
e3acdbe85b
Fixes up dictionary and language repositories to have underlying simple get repositories since they support getting by id, unique id and string variations but we want to have native repository enabled caching for these items so these get methods now use private repositories based on these keys. Adds more tests, removes N+1 queries for languages and dictionary items. Removes RuntimeCacheProvider, we only want one type of cache, this simplifies things a lot.
2015-01-13 13:25:36 +11:00
Shannon
5bef3593dd
More dependency cleanup, less singleton usages, better testing implementations
2015-01-09 15:27:47 +11:00
Shannon
32470e9bd2
fixes more tests
2015-01-09 11:23:40 +11:00
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
0ff5c72862
Removing unused code and also working on U4-5805
2014-11-14 17:46:21 +11:00
Shannon
d19d1b3a18
Changes database behavior in integration tests to be opt-in, removes the db behavior to have a new schema per fixture, now we only deal in new files + schema per fixture/tests as it was taking longer to uninstall the db tables than just delete the file.
2014-03-17 19:38:29 +11:00
Shannon
e29031a2c4
Back ported relationship repo/service updates
2013-12-16 18:44:11 +11:00
Shannon
2ce952bdbb
backports data type service updates and fixes unit tests with correct seeding value.
2013-12-16 17:17:23 +11:00
Shannon
8fe7c0da9e
Changed all repository tests to ensure they are not testing with cache enabled... now to fix the problems :(
2013-09-18 11:40:40 +10:00
leekelleher
37860b4015
Replaced all hard-coded GUID references to use the new Constants.
2013-03-14 22:00:37 +00:00
Shannon Deminick
50b05d25f5
Added BaseUmbracoApplicationTests and fixed up dispose on the ApplicationContext to ensure the db object is disposed and doesn't
...
reset the PluginManager (as this shouldn't really need to be done). Cleaned up all unit tests so they follow the same structure and
uses this base class where necessary and eliminates a lot of duplicate code.
2013-03-13 18:31:07 +04:00