From 3bfb8f877441dfd5d2dead57ca0cb30987d562b0 Mon Sep 17 00:00:00 2001 From: Jason Webb Date: Sat, 2 Nov 2024 12:45:06 -0600 Subject: [PATCH] WIP: Added Unit Testing projects --- Examples/Examples.sln | 190 +++++++++++++----- .../GlobalUsings.cs} | 0 .../RCommon.ApplicationServices.Tests.csproj | 32 +++ Tests/RCommon.Caching.Tests/CacheKeyTests.cs | 63 ++++++ .../GlobalUsings.cs} | 0 .../RCommon.Caching.Tests.csproj | 32 +++ .../EventHandling/InMemoryEventBusTests.cs | 78 +++++++ .../InMemoryTransactionalEventRouterTests.cs | 96 +++++++++ .../PublishWithEventBusEventProducerTests.cs | 53 +++++ .../GlobalUsings.cs} | 0 .../GuardTests.cs | 30 +-- .../RCommon.Core.Tests.csproj} | 8 +- .../SimpleGuidGeneratorTests.cs | 41 ++++ .../Configurations/CustomerMap.cs | 0 .../Configurations/OrderMap.cs | 0 .../Configurations/SalesPersonMap.cs | 0 .../DapperRepositoryIntegrationTests.cs | 0 .../DapperTestBase.cs | 0 Tests/RCommon.Dapper.Tests/GlobalUsings.cs | 1 + .../RCommon.Dapper.Tests.csproj} | 24 ++- .../TestDbConnection.cs | 0 .../appsettings.json | 0 .../EFCoreRepositoryIntegrationTests.cs | 0 .../EFCoreTestBase.cs | 0 Tests/RCommon.EFCore.Tests/GlobalUsings.cs | 1 + .../RCommon.EFCore.Tests.csproj | 42 ++++ Tests/RCommon.EFCore.Tests/UnitTest1.cs | 16 ++ .../appsettings.json | 0 .../RCommon.Emailing.SendGrid.Tests.csproj | 4 +- .../RCommon.Emailing.Tests.csproj | 4 +- Tests/RCommon.Entities.Tests/GlobalUsings.cs | 1 + .../RCommon.Entities.Tests.csproj | 32 +++ .../GlobalUsings.cs | 1 + .../RCommon.FluentValidation.Tests.csproj | 32 +++ Tests/RCommon.Json.Tests/GlobalUsings.cs | 1 + .../RCommon.Json.Tests.csproj | 28 +++ Tests/RCommon.JsonNet.Tests/GlobalUsings.cs | 1 + .../RCommon.JsonNet.Tests.csproj | 28 +++ Tests/RCommon.Linq2Db.Tests/GlobalUsings.cs | 1 + .../Linq2DbRepositoryIntegrationTests.cs | 0 .../Linq2DbTestBase.cs | 0 .../RCommon.Linq2Db.Tests.csproj | 33 +++ .../TestDataConnection.cs | 0 .../appsettings.json | 0 .../RCommon.MassTransit.Tests/GlobalUsings.cs | 1 + .../RCommon.MassTransit.Tests.csproj | 32 +++ Tests/RCommon.MediatR.Tests/GlobalUsings.cs | 1 + .../RCommon.MediatR.Tests.csproj | 32 +++ .../MediatRTestBase.cs | 62 ------ Tests/RCommon.Mediator.Tests/GlobalUsings.cs | 1 + .../RCommon.Mediator.Tests.csproj | 32 +++ .../RCommon.MemoryCache.Tests/GlobalUsings.cs | 1 + .../RCommon.MemoryCache.Tests.csproj | 32 +++ .../MassTransitMessagingTestBase.cs | 41 ---- .../SendWithMassTransitEventProducerTests.cs | 58 ------ .../WolverineMessagingTestBase.cs | 41 ---- Tests/RCommon.Models.Tests/GlobalUsings.cs | 1 + .../RCommon.Models.Tests.csproj | 20 ++ .../RCommon.Persistence.Dapper.Tests.csproj | 43 ---- .../RCommon.Persistence.EFCore.Tests.csproj | 49 ----- .../RCommon.Persistence.Linq2Db.Tests.csproj | 37 ---- .../RCommon.Persistence.Tests/GlobalUsings.cs | 1 + .../RCommon.Persistence.Tests.csproj} | 7 +- .../RCommon.RedisCache.Tests/GlobalUsings.cs | 1 + .../RCommon.RedisCache.Tests.csproj | 32 +++ .../GlobalUsings.cs | 1 + .../RCommon.SystemTextJson.Tests.csproj | 28 +++ .../ExpectedExceptionAttribute.cs | 3 +- .../Application/DTO/CustomerDto.cs | 52 ----- .../RCommon.Tests/Application/DTO/OrderDto.cs | 19 -- Tests/RCommon.Tests/RCommon.Tests.csproj | 38 ---- Tests/RCommon.Tests/appsettings.json | 25 --- Tests/RCommon.Wolverine.Tests/GlobalUsings.cs | 1 + .../RCommon.Wolverine.Tests.csproj | 32 +++ 74 files changed, 1048 insertions(+), 549 deletions(-) rename Tests/{RCommon.Mediator.MediatR.Tests/Usings.cs => RCommon.ApplicationServices.Tests/GlobalUsings.cs} (100%) create mode 100644 Tests/RCommon.ApplicationServices.Tests/RCommon.ApplicationServices.Tests.csproj create mode 100644 Tests/RCommon.Caching.Tests/CacheKeyTests.cs rename Tests/{RCommon.Messaging.MassTransit.Tests/Usings.cs => RCommon.Caching.Tests/GlobalUsings.cs} (100%) create mode 100644 Tests/RCommon.Caching.Tests/RCommon.Caching.Tests.csproj create mode 100644 Tests/RCommon.Core.Tests/EventHandling/InMemoryEventBusTests.cs create mode 100644 Tests/RCommon.Core.Tests/EventHandling/Producers/InMemoryTransactionalEventRouterTests.cs create mode 100644 Tests/RCommon.Core.Tests/EventHandling/Producers/PublishWithEventBusEventProducerTests.cs rename Tests/{RCommon.Messaging.Wolverine.Tests/Usings.cs => RCommon.Core.Tests/GlobalUsings.cs} (100%) rename Tests/{RCommon.Tests => RCommon.Core.Tests}/GuardTests.cs (82%) rename Tests/{RCommon.Messaging.MassTransit.Tests/RCommon.Messaging.MassTransit.Tests.csproj => RCommon.Core.Tests/RCommon.Core.Tests.csproj} (74%) create mode 100644 Tests/RCommon.Core.Tests/SimpleGuidGeneratorTests.cs rename Tests/{RCommon.Persistence.Dapper.Tests => RCommon.Dapper.Tests}/Configurations/CustomerMap.cs (100%) rename Tests/{RCommon.Persistence.Dapper.Tests => RCommon.Dapper.Tests}/Configurations/OrderMap.cs (100%) rename Tests/{RCommon.Persistence.Dapper.Tests => RCommon.Dapper.Tests}/Configurations/SalesPersonMap.cs (100%) rename Tests/{RCommon.Persistence.Dapper.Tests => RCommon.Dapper.Tests}/DapperRepositoryIntegrationTests.cs (100%) rename Tests/{RCommon.Persistence.Dapper.Tests => RCommon.Dapper.Tests}/DapperTestBase.cs (100%) create mode 100644 Tests/RCommon.Dapper.Tests/GlobalUsings.cs rename Tests/{RCommon.Mediator.MediatR.Tests/RCommon.Mediator.MediatR.Tests.csproj => RCommon.Dapper.Tests/RCommon.Dapper.Tests.csproj} (50%) rename Tests/{RCommon.Persistence.Dapper.Tests => RCommon.Dapper.Tests}/TestDbConnection.cs (100%) rename Tests/{RCommon.Persistence.Dapper.Tests => RCommon.Dapper.Tests}/appsettings.json (100%) rename Tests/{RCommon.Persistence.EFCore.Tests => RCommon.EFCore.Tests}/EFCoreRepositoryIntegrationTests.cs (100%) rename Tests/{RCommon.Persistence.EFCore.Tests => RCommon.EFCore.Tests}/EFCoreTestBase.cs (100%) create mode 100644 Tests/RCommon.EFCore.Tests/GlobalUsings.cs create mode 100644 Tests/RCommon.EFCore.Tests/RCommon.EFCore.Tests.csproj create mode 100644 Tests/RCommon.EFCore.Tests/UnitTest1.cs rename Tests/{RCommon.Persistence.EFCore.Tests => RCommon.EFCore.Tests}/appsettings.json (100%) create mode 100644 Tests/RCommon.Entities.Tests/GlobalUsings.cs create mode 100644 Tests/RCommon.Entities.Tests/RCommon.Entities.Tests.csproj create mode 100644 Tests/RCommon.FluentValidation.Tests/GlobalUsings.cs create mode 100644 Tests/RCommon.FluentValidation.Tests/RCommon.FluentValidation.Tests.csproj create mode 100644 Tests/RCommon.Json.Tests/GlobalUsings.cs create mode 100644 Tests/RCommon.Json.Tests/RCommon.Json.Tests.csproj create mode 100644 Tests/RCommon.JsonNet.Tests/GlobalUsings.cs create mode 100644 Tests/RCommon.JsonNet.Tests/RCommon.JsonNet.Tests.csproj create mode 100644 Tests/RCommon.Linq2Db.Tests/GlobalUsings.cs rename Tests/{RCommon.Persistence.Linq2Db.Tests => RCommon.Linq2Db.Tests}/Linq2DbRepositoryIntegrationTests.cs (100%) rename Tests/{RCommon.Persistence.Linq2Db.Tests => RCommon.Linq2Db.Tests}/Linq2DbTestBase.cs (100%) create mode 100644 Tests/RCommon.Linq2Db.Tests/RCommon.Linq2Db.Tests.csproj rename Tests/{RCommon.Persistence.Linq2Db.Tests => RCommon.Linq2Db.Tests}/TestDataConnection.cs (100%) rename Tests/{RCommon.Persistence.Linq2Db.Tests => RCommon.Linq2Db.Tests}/appsettings.json (100%) create mode 100644 Tests/RCommon.MassTransit.Tests/GlobalUsings.cs create mode 100644 Tests/RCommon.MassTransit.Tests/RCommon.MassTransit.Tests.csproj create mode 100644 Tests/RCommon.MediatR.Tests/GlobalUsings.cs create mode 100644 Tests/RCommon.MediatR.Tests/RCommon.MediatR.Tests.csproj delete mode 100644 Tests/RCommon.Mediator.MediatR.Tests/MediatRTestBase.cs create mode 100644 Tests/RCommon.Mediator.Tests/GlobalUsings.cs create mode 100644 Tests/RCommon.Mediator.Tests/RCommon.Mediator.Tests.csproj create mode 100644 Tests/RCommon.MemoryCache.Tests/GlobalUsings.cs create mode 100644 Tests/RCommon.MemoryCache.Tests/RCommon.MemoryCache.Tests.csproj delete mode 100644 Tests/RCommon.Messaging.MassTransit.Tests/MassTransitMessagingTestBase.cs delete mode 100644 Tests/RCommon.Messaging.MassTransit.Tests/SendWithMassTransitEventProducerTests.cs delete mode 100644 Tests/RCommon.Messaging.Wolverine.Tests/WolverineMessagingTestBase.cs create mode 100644 Tests/RCommon.Models.Tests/GlobalUsings.cs create mode 100644 Tests/RCommon.Models.Tests/RCommon.Models.Tests.csproj delete mode 100644 Tests/RCommon.Persistence.Dapper.Tests/RCommon.Persistence.Dapper.Tests.csproj delete mode 100644 Tests/RCommon.Persistence.EFCore.Tests/RCommon.Persistence.EFCore.Tests.csproj delete mode 100644 Tests/RCommon.Persistence.Linq2Db.Tests/RCommon.Persistence.Linq2Db.Tests.csproj create mode 100644 Tests/RCommon.Persistence.Tests/GlobalUsings.cs rename Tests/{RCommon.Messaging.Wolverine.Tests/RCommon.Messaging.Wolverine.Tests.csproj => RCommon.Persistence.Tests/RCommon.Persistence.Tests.csproj} (85%) create mode 100644 Tests/RCommon.RedisCache.Tests/GlobalUsings.cs create mode 100644 Tests/RCommon.RedisCache.Tests/RCommon.RedisCache.Tests.csproj create mode 100644 Tests/RCommon.SystemTextJson.Tests/GlobalUsings.cs create mode 100644 Tests/RCommon.SystemTextJson.Tests/RCommon.SystemTextJson.Tests.csproj rename Tests/{RCommon.Tests => RCommon.TestBase}/ExpectedExceptionAttribute.cs (97%) delete mode 100644 Tests/RCommon.Tests/Application/DTO/CustomerDto.cs delete mode 100644 Tests/RCommon.Tests/Application/DTO/OrderDto.cs delete mode 100644 Tests/RCommon.Tests/RCommon.Tests.csproj delete mode 100644 Tests/RCommon.Tests/appsettings.json create mode 100644 Tests/RCommon.Wolverine.Tests/GlobalUsings.cs create mode 100644 Tests/RCommon.Wolverine.Tests/RCommon.Wolverine.Tests.csproj diff --git a/Examples/Examples.sln b/Examples/Examples.sln index 22c33805..e1fd495e 100644 --- a/Examples/Examples.sln +++ b/Examples/Examples.sln @@ -7,8 +7,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RCommon.Core", "..\Src\RCom EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{0AF37317-F10E-47E8-A4C8-9EA886E00E40}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RCommon.Tests", "..\Tests\RCommon.Tests\RCommon.Tests.csproj", "{68ED8F88-64A7-4F54-8A05-DDBB6894F10B}" -EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Examples", "Examples", "{3234C3BB-1632-4684-838E-9D6D382D4D4D}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RCommon.TestBase", "..\Tests\RCommon.TestBase\RCommon.TestBase.csproj", "{3A6EE1AD-5E24-4CA4-B64D-E1517EB2DF63}" @@ -27,10 +25,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RCommon.Dapper", "..\Src\RC EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RCommon.EFCore", "..\Src\RCommon.EfCore\RCommon.EFCore.csproj", "{A570C8FC-AEEB-49DF-9A47-9EDB027BEC67}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RCommon.Persistence.Dapper.Tests", "..\Tests\RCommon.Persistence.Dapper.Tests\RCommon.Persistence.Dapper.Tests.csproj", "{A2F192C5-0D7A-43C5-940E-F1CFAB4545CB}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RCommon.Persistence.EFCore.Tests", "..\Tests\RCommon.Persistence.EFCore.Tests\RCommon.Persistence.EFCore.Tests.csproj", "{A0F932FE-9866-4FD4-8B41-35DFF71DA767}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RCommon.Web", "..\Src\RCommon.Web\RCommon.Web.csproj", "{BBFED0EE-D18E-47FE-81BB-F8C3E2F9136B}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RCommon.Authorization.Web", "..\Src\RCommon.Authorization.Web\RCommon.Authorization.Web.csproj", "{E48B660B-BB17-4CB5-9051-E12729C49AD1}" @@ -65,8 +59,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RCommon.Emailing.SendGrid.T EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RCommon.Linq2Db", "..\Src\RCommon.Linq2Db\RCommon.Linq2Db.csproj", "{2B494844-B218-43B8-9FC3-9D0B2BC22BD6}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RCommon.Persistence.Linq2Db.Tests", "..\Tests\RCommon.Persistence.Linq2Db.Tests\RCommon.Persistence.Linq2Db.Tests.csproj", "{59B51CA8-F2C1-402C-B97F-5B0BB6B74A2A}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RCommon.TestBase.Data", "..\Tests\RCommon.TestBase.Data\RCommon.TestBase.Data.csproj", "{B608157C-D7AE-410E-9284-64A30B0B5404}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RCommon.MassTransit", "..\Src\RCommon.MassTransit\RCommon.MassTransit.csproj", "{D9B8D10F-3206-482F-8C4F-8079408ED224}" @@ -75,18 +67,12 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Persistence", "Persistence" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Messaging", "Messaging", "{F026BAB4-FBBE-4AF5-8187-AA3ADF540053}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RCommon.Messaging.MassTransit.Tests", "..\Tests\RCommon.Messaging.MassTransit.Tests\RCommon.Messaging.MassTransit.Tests.csproj", "{D02ADFB9-822C-47BD-B5E9-4469F57CD8AB}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RCommon.Messaging.Wolverine.Tests", "..\Tests\RCommon.Messaging.Wolverine.Tests\RCommon.Messaging.Wolverine.Tests.csproj", "{52003D9E-B698-4E48-BD97-3702DD8F91A9}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RCommon.MediatR", "..\Src\RCommon.Mediatr\RCommon.MediatR.csproj", "{0987AF3F-6EFC-4AE6-9007-DE9533934D82}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RCommon.Mediator", "..\Src\RCommon.Mediator\RCommon.Mediator.csproj", "{0CE7EC46-274F-4D46-A344-1F92E1D23923}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Mediators", "Mediators", "{86B19A1B-17F9-410F-8B97-74FE3EE7A4BE}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RCommon.Mediator.MediatR.Tests", "..\Tests\RCommon.Mediator.MediatR.Tests\RCommon.Mediator.MediatR.Tests.csproj", "{38508541-4429-4A30-9D84-B151250E08B8}" -EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Messaging", "Messaging", "{35AE0870-0A6D-4F27-B534-B8DCDFD11A36}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Providers", "Providers", "{3199F749-0082-41D0-91D3-ECED117F8B08}" @@ -145,10 +131,52 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RCommon.SystemTextJson", ". EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RCommon.MemoryCache", "..\Src\RCommon.MemoryCache\RCommon.MemoryCache.csproj", "{F5277287-1776-494B-92EE-7237D1B8949B}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RCommon.Persistence.Caching.MemoryCache", "..\Src\RCommon.Persistence.Caching.MemoryCache\RCommon.Persistence.Caching.MemoryCache.csproj", "{B10EBC65-DB29-44AE-8BEB-E4BD170924C3}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RCommon.Persistence.Caching.MemoryCache", "..\Src\RCommon.Persistence.Caching.MemoryCache\RCommon.Persistence.Caching.MemoryCache.csproj", "{B10EBC65-DB29-44AE-8BEB-E4BD170924C3}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RCommon.Persistence.Caching.RedisCache", "..\Src\RCommon.Persistence.Caching.RedisCache\RCommon.Persistence.Caching.RedisCache.csproj", "{924B529F-D036-464B-B1A6-257CD95143B4}" EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RCommon.Core.Tests", "..\Tests\RCommon.Core.Tests\RCommon.Core.Tests.csproj", "{6CC256C4-2CE7-4396-A40A-FC55F83189AA}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RCommon.Caching.Tests", "..\Tests\RCommon.Caching.Tests\RCommon.Caching.Tests.csproj", "{3D1C3CB4-663C-439B-A3BA-FADBC951DE19}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RCommon.ApplicationServices.Tests", "..\Tests\RCommon.ApplicationServices.Tests\RCommon.ApplicationServices.Tests.csproj", "{7D864B82-CF04-43CC-A36F-28DD4B3A8FD9}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RCommon.EFCore.Tests", "..\Tests\RCommon.EFCore.Tests\RCommon.EFCore.Tests.csproj", "{F29089EE-1E58-461B-8408-B6093FBA444D}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RCommon.Dapper.Tests", "..\Tests\RCommon.Dapper.Tests\RCommon.Dapper.Tests.csproj", "{B3F77BE5-F7ED-41C9-B5CC-B82B98BFEA2A}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RCommon.Linq2Db.Tests", "..\Tests\RCommon.Linq2Db.Tests\RCommon.Linq2Db.Tests.csproj", "{15EE68C6-F328-4ED8-BC1E-A637250B7F9F}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RCommon.Mediator.Tests", "..\Tests\RCommon.Mediator.Tests\RCommon.Mediator.Tests.csproj", "{A6E37A46-84F4-4C8B-A8D1-5E389A458893}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RCommon.MediatR.Tests", "..\Tests\RCommon.MediatR.Tests\RCommon.MediatR.Tests.csproj", "{4C8698C3-D3D7-43E5-93E5-DF5A687A9ECC}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RCommon.Wolverine.Tests", "..\Tests\RCommon.Wolverine.Tests\RCommon.Wolverine.Tests.csproj", "{977141C7-27F0-4BC4-81FF-FF9D7A452332}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RCommon.MassTransit.Tests", "..\Tests\RCommon.MassTransit.Tests\RCommon.MassTransit.Tests.csproj", "{CF532FBC-DE02-4824-B469-2BBB5625B85D}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RCommon.Persistence.Tests", "..\Tests\RCommon.Persistence.Tests\RCommon.Persistence.Tests.csproj", "{AFF7D4F6-3BC8-42B6-8536-F43108320E30}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RCommon.Json.Tests", "..\Tests\RCommon.Json.Tests\RCommon.Json.Tests.csproj", "{01A15E08-A422-4AF3-8241-D3466D5CD9B3}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Serialization", "Serialization", "{227AEB37-EA4B-4ABD-929D-9E4A010BC30D}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Caching", "Caching", "{1FC7F5F3-77C7-464A-B571-5953242782D8}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RCommon.SystemTextJson.Tests", "..\Tests\RCommon.SystemTextJson.Tests\RCommon.SystemTextJson.Tests.csproj", "{CDACF4FC-7B0F-4EF5-A5BB-E71110A00C6B}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RCommon.JsonNet.Tests", "..\Tests\RCommon.JsonNet.Tests\RCommon.JsonNet.Tests.csproj", "{020A13D7-4A66-4F88-B3C3-52342FA25C90}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RCommon.MemoryCache.Tests", "..\Tests\RCommon.MemoryCache.Tests\RCommon.MemoryCache.Tests.csproj", "{1790AB06-4AB8-47C0-8C68-798BCBD310FE}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RCommon.RedisCache.Tests", "..\Tests\RCommon.RedisCache.Tests\RCommon.RedisCache.Tests.csproj", "{B51471DF-9B83-48F2-A705-5FB357A003C2}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RCommon.Entities.Tests", "..\Tests\RCommon.Entities.Tests\RCommon.Entities.Tests.csproj", "{D90F08A6-5658-4DFE-A203-50B092CCD90F}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RCommon.Models.Tests", "..\Tests\RCommon.Models.Tests\RCommon.Models.Tests.csproj", "{32EA8BAC-5AF8-4310-BB0F-044C8A83ADEA}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RCommon.FluentValidation.Tests", "..\Tests\RCommon.FluentValidation.Tests\RCommon.FluentValidation.Tests.csproj", "{B76A68AA-2B92-48D9-809A-8BF56126A577}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -159,10 +187,6 @@ Global {04F96FF4-7229-4468-A486-086993EFD2A2}.Debug|Any CPU.Build.0 = Debug|Any CPU {04F96FF4-7229-4468-A486-086993EFD2A2}.Release|Any CPU.ActiveCfg = Release|Any CPU {04F96FF4-7229-4468-A486-086993EFD2A2}.Release|Any CPU.Build.0 = Release|Any CPU - {68ED8F88-64A7-4F54-8A05-DDBB6894F10B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {68ED8F88-64A7-4F54-8A05-DDBB6894F10B}.Debug|Any CPU.Build.0 = Debug|Any CPU - {68ED8F88-64A7-4F54-8A05-DDBB6894F10B}.Release|Any CPU.ActiveCfg = Release|Any CPU - {68ED8F88-64A7-4F54-8A05-DDBB6894F10B}.Release|Any CPU.Build.0 = Release|Any CPU {3A6EE1AD-5E24-4CA4-B64D-E1517EB2DF63}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {3A6EE1AD-5E24-4CA4-B64D-E1517EB2DF63}.Debug|Any CPU.Build.0 = Debug|Any CPU {3A6EE1AD-5E24-4CA4-B64D-E1517EB2DF63}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -191,14 +215,6 @@ Global {A570C8FC-AEEB-49DF-9A47-9EDB027BEC67}.Debug|Any CPU.Build.0 = Debug|Any CPU {A570C8FC-AEEB-49DF-9A47-9EDB027BEC67}.Release|Any CPU.ActiveCfg = Release|Any CPU {A570C8FC-AEEB-49DF-9A47-9EDB027BEC67}.Release|Any CPU.Build.0 = Release|Any CPU - {A2F192C5-0D7A-43C5-940E-F1CFAB4545CB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {A2F192C5-0D7A-43C5-940E-F1CFAB4545CB}.Debug|Any CPU.Build.0 = Debug|Any CPU - {A2F192C5-0D7A-43C5-940E-F1CFAB4545CB}.Release|Any CPU.ActiveCfg = Release|Any CPU - {A2F192C5-0D7A-43C5-940E-F1CFAB4545CB}.Release|Any CPU.Build.0 = Release|Any CPU - {A0F932FE-9866-4FD4-8B41-35DFF71DA767}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {A0F932FE-9866-4FD4-8B41-35DFF71DA767}.Debug|Any CPU.Build.0 = Debug|Any CPU - {A0F932FE-9866-4FD4-8B41-35DFF71DA767}.Release|Any CPU.ActiveCfg = Release|Any CPU - {A0F932FE-9866-4FD4-8B41-35DFF71DA767}.Release|Any CPU.Build.0 = Release|Any CPU {BBFED0EE-D18E-47FE-81BB-F8C3E2F9136B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {BBFED0EE-D18E-47FE-81BB-F8C3E2F9136B}.Debug|Any CPU.Build.0 = Debug|Any CPU {BBFED0EE-D18E-47FE-81BB-F8C3E2F9136B}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -263,10 +279,6 @@ Global {2B494844-B218-43B8-9FC3-9D0B2BC22BD6}.Debug|Any CPU.Build.0 = Debug|Any CPU {2B494844-B218-43B8-9FC3-9D0B2BC22BD6}.Release|Any CPU.ActiveCfg = Release|Any CPU {2B494844-B218-43B8-9FC3-9D0B2BC22BD6}.Release|Any CPU.Build.0 = Release|Any CPU - {59B51CA8-F2C1-402C-B97F-5B0BB6B74A2A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {59B51CA8-F2C1-402C-B97F-5B0BB6B74A2A}.Debug|Any CPU.Build.0 = Debug|Any CPU - {59B51CA8-F2C1-402C-B97F-5B0BB6B74A2A}.Release|Any CPU.ActiveCfg = Release|Any CPU - {59B51CA8-F2C1-402C-B97F-5B0BB6B74A2A}.Release|Any CPU.Build.0 = Release|Any CPU {B608157C-D7AE-410E-9284-64A30B0B5404}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {B608157C-D7AE-410E-9284-64A30B0B5404}.Debug|Any CPU.Build.0 = Debug|Any CPU {B608157C-D7AE-410E-9284-64A30B0B5404}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -275,14 +287,6 @@ Global {D9B8D10F-3206-482F-8C4F-8079408ED224}.Debug|Any CPU.Build.0 = Debug|Any CPU {D9B8D10F-3206-482F-8C4F-8079408ED224}.Release|Any CPU.ActiveCfg = Release|Any CPU {D9B8D10F-3206-482F-8C4F-8079408ED224}.Release|Any CPU.Build.0 = Release|Any CPU - {D02ADFB9-822C-47BD-B5E9-4469F57CD8AB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {D02ADFB9-822C-47BD-B5E9-4469F57CD8AB}.Debug|Any CPU.Build.0 = Debug|Any CPU - {D02ADFB9-822C-47BD-B5E9-4469F57CD8AB}.Release|Any CPU.ActiveCfg = Release|Any CPU - {D02ADFB9-822C-47BD-B5E9-4469F57CD8AB}.Release|Any CPU.Build.0 = Release|Any CPU - {52003D9E-B698-4E48-BD97-3702DD8F91A9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {52003D9E-B698-4E48-BD97-3702DD8F91A9}.Debug|Any CPU.Build.0 = Debug|Any CPU - {52003D9E-B698-4E48-BD97-3702DD8F91A9}.Release|Any CPU.ActiveCfg = Release|Any CPU - {52003D9E-B698-4E48-BD97-3702DD8F91A9}.Release|Any CPU.Build.0 = Release|Any CPU {0987AF3F-6EFC-4AE6-9007-DE9533934D82}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {0987AF3F-6EFC-4AE6-9007-DE9533934D82}.Debug|Any CPU.Build.0 = Debug|Any CPU {0987AF3F-6EFC-4AE6-9007-DE9533934D82}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -291,10 +295,6 @@ Global {0CE7EC46-274F-4D46-A344-1F92E1D23923}.Debug|Any CPU.Build.0 = Debug|Any CPU {0CE7EC46-274F-4D46-A344-1F92E1D23923}.Release|Any CPU.ActiveCfg = Release|Any CPU {0CE7EC46-274F-4D46-A344-1F92E1D23923}.Release|Any CPU.Build.0 = Release|Any CPU - {38508541-4429-4A30-9D84-B151250E08B8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {38508541-4429-4A30-9D84-B151250E08B8}.Debug|Any CPU.Build.0 = Debug|Any CPU - {38508541-4429-4A30-9D84-B151250E08B8}.Release|Any CPU.ActiveCfg = Release|Any CPU - {38508541-4429-4A30-9D84-B151250E08B8}.Release|Any CPU.Build.0 = Release|Any CPU {90B4A098-01AB-4B35-987E-838F2241DA17}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {90B4A098-01AB-4B35-987E-838F2241DA17}.Debug|Any CPU.Build.0 = Debug|Any CPU {90B4A098-01AB-4B35-987E-838F2241DA17}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -387,18 +387,91 @@ Global {924B529F-D036-464B-B1A6-257CD95143B4}.Debug|Any CPU.Build.0 = Debug|Any CPU {924B529F-D036-464B-B1A6-257CD95143B4}.Release|Any CPU.ActiveCfg = Release|Any CPU {924B529F-D036-464B-B1A6-257CD95143B4}.Release|Any CPU.Build.0 = Release|Any CPU + {6CC256C4-2CE7-4396-A40A-FC55F83189AA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {6CC256C4-2CE7-4396-A40A-FC55F83189AA}.Debug|Any CPU.Build.0 = Debug|Any CPU + {6CC256C4-2CE7-4396-A40A-FC55F83189AA}.Release|Any CPU.ActiveCfg = Release|Any CPU + {6CC256C4-2CE7-4396-A40A-FC55F83189AA}.Release|Any CPU.Build.0 = Release|Any CPU + {3D1C3CB4-663C-439B-A3BA-FADBC951DE19}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3D1C3CB4-663C-439B-A3BA-FADBC951DE19}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3D1C3CB4-663C-439B-A3BA-FADBC951DE19}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3D1C3CB4-663C-439B-A3BA-FADBC951DE19}.Release|Any CPU.Build.0 = Release|Any CPU + {7D864B82-CF04-43CC-A36F-28DD4B3A8FD9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {7D864B82-CF04-43CC-A36F-28DD4B3A8FD9}.Debug|Any CPU.Build.0 = Debug|Any CPU + {7D864B82-CF04-43CC-A36F-28DD4B3A8FD9}.Release|Any CPU.ActiveCfg = Release|Any CPU + {7D864B82-CF04-43CC-A36F-28DD4B3A8FD9}.Release|Any CPU.Build.0 = Release|Any CPU + {F29089EE-1E58-461B-8408-B6093FBA444D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F29089EE-1E58-461B-8408-B6093FBA444D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F29089EE-1E58-461B-8408-B6093FBA444D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F29089EE-1E58-461B-8408-B6093FBA444D}.Release|Any CPU.Build.0 = Release|Any CPU + {B3F77BE5-F7ED-41C9-B5CC-B82B98BFEA2A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B3F77BE5-F7ED-41C9-B5CC-B82B98BFEA2A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B3F77BE5-F7ED-41C9-B5CC-B82B98BFEA2A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B3F77BE5-F7ED-41C9-B5CC-B82B98BFEA2A}.Release|Any CPU.Build.0 = Release|Any CPU + {15EE68C6-F328-4ED8-BC1E-A637250B7F9F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {15EE68C6-F328-4ED8-BC1E-A637250B7F9F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {15EE68C6-F328-4ED8-BC1E-A637250B7F9F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {15EE68C6-F328-4ED8-BC1E-A637250B7F9F}.Release|Any CPU.Build.0 = Release|Any CPU + {A6E37A46-84F4-4C8B-A8D1-5E389A458893}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A6E37A46-84F4-4C8B-A8D1-5E389A458893}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A6E37A46-84F4-4C8B-A8D1-5E389A458893}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A6E37A46-84F4-4C8B-A8D1-5E389A458893}.Release|Any CPU.Build.0 = Release|Any CPU + {4C8698C3-D3D7-43E5-93E5-DF5A687A9ECC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4C8698C3-D3D7-43E5-93E5-DF5A687A9ECC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4C8698C3-D3D7-43E5-93E5-DF5A687A9ECC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4C8698C3-D3D7-43E5-93E5-DF5A687A9ECC}.Release|Any CPU.Build.0 = Release|Any CPU + {977141C7-27F0-4BC4-81FF-FF9D7A452332}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {977141C7-27F0-4BC4-81FF-FF9D7A452332}.Debug|Any CPU.Build.0 = Debug|Any CPU + {977141C7-27F0-4BC4-81FF-FF9D7A452332}.Release|Any CPU.ActiveCfg = Release|Any CPU + {977141C7-27F0-4BC4-81FF-FF9D7A452332}.Release|Any CPU.Build.0 = Release|Any CPU + {CF532FBC-DE02-4824-B469-2BBB5625B85D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {CF532FBC-DE02-4824-B469-2BBB5625B85D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {CF532FBC-DE02-4824-B469-2BBB5625B85D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {CF532FBC-DE02-4824-B469-2BBB5625B85D}.Release|Any CPU.Build.0 = Release|Any CPU + {AFF7D4F6-3BC8-42B6-8536-F43108320E30}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {AFF7D4F6-3BC8-42B6-8536-F43108320E30}.Debug|Any CPU.Build.0 = Debug|Any CPU + {AFF7D4F6-3BC8-42B6-8536-F43108320E30}.Release|Any CPU.ActiveCfg = Release|Any CPU + {AFF7D4F6-3BC8-42B6-8536-F43108320E30}.Release|Any CPU.Build.0 = Release|Any CPU + {01A15E08-A422-4AF3-8241-D3466D5CD9B3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {01A15E08-A422-4AF3-8241-D3466D5CD9B3}.Debug|Any CPU.Build.0 = Debug|Any CPU + {01A15E08-A422-4AF3-8241-D3466D5CD9B3}.Release|Any CPU.ActiveCfg = Release|Any CPU + {01A15E08-A422-4AF3-8241-D3466D5CD9B3}.Release|Any CPU.Build.0 = Release|Any CPU + {CDACF4FC-7B0F-4EF5-A5BB-E71110A00C6B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {CDACF4FC-7B0F-4EF5-A5BB-E71110A00C6B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {CDACF4FC-7B0F-4EF5-A5BB-E71110A00C6B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {CDACF4FC-7B0F-4EF5-A5BB-E71110A00C6B}.Release|Any CPU.Build.0 = Release|Any CPU + {020A13D7-4A66-4F88-B3C3-52342FA25C90}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {020A13D7-4A66-4F88-B3C3-52342FA25C90}.Debug|Any CPU.Build.0 = Debug|Any CPU + {020A13D7-4A66-4F88-B3C3-52342FA25C90}.Release|Any CPU.ActiveCfg = Release|Any CPU + {020A13D7-4A66-4F88-B3C3-52342FA25C90}.Release|Any CPU.Build.0 = Release|Any CPU + {1790AB06-4AB8-47C0-8C68-798BCBD310FE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {1790AB06-4AB8-47C0-8C68-798BCBD310FE}.Debug|Any CPU.Build.0 = Debug|Any CPU + {1790AB06-4AB8-47C0-8C68-798BCBD310FE}.Release|Any CPU.ActiveCfg = Release|Any CPU + {1790AB06-4AB8-47C0-8C68-798BCBD310FE}.Release|Any CPU.Build.0 = Release|Any CPU + {B51471DF-9B83-48F2-A705-5FB357A003C2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B51471DF-9B83-48F2-A705-5FB357A003C2}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B51471DF-9B83-48F2-A705-5FB357A003C2}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B51471DF-9B83-48F2-A705-5FB357A003C2}.Release|Any CPU.Build.0 = Release|Any CPU + {D90F08A6-5658-4DFE-A203-50B092CCD90F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D90F08A6-5658-4DFE-A203-50B092CCD90F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D90F08A6-5658-4DFE-A203-50B092CCD90F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D90F08A6-5658-4DFE-A203-50B092CCD90F}.Release|Any CPU.Build.0 = Release|Any CPU + {32EA8BAC-5AF8-4310-BB0F-044C8A83ADEA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {32EA8BAC-5AF8-4310-BB0F-044C8A83ADEA}.Debug|Any CPU.Build.0 = Debug|Any CPU + {32EA8BAC-5AF8-4310-BB0F-044C8A83ADEA}.Release|Any CPU.ActiveCfg = Release|Any CPU + {32EA8BAC-5AF8-4310-BB0F-044C8A83ADEA}.Release|Any CPU.Build.0 = Release|Any CPU + {B76A68AA-2B92-48D9-809A-8BF56126A577}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B76A68AA-2B92-48D9-809A-8BF56126A577}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B76A68AA-2B92-48D9-809A-8BF56126A577}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B76A68AA-2B92-48D9-809A-8BF56126A577}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection GlobalSection(NestedProjects) = preSolution - {68ED8F88-64A7-4F54-8A05-DDBB6894F10B} = {0AF37317-F10E-47E8-A4C8-9EA886E00E40} {3A6EE1AD-5E24-4CA4-B64D-E1517EB2DF63} = {788A01F9-0510-441A-B05B-0CDA0EE87507} {788A01F9-0510-441A-B05B-0CDA0EE87507} = {0AF37317-F10E-47E8-A4C8-9EA886E00E40} {CADD5842-C3F4-4E70-8C5D-C447827A83C2} = {3199F749-0082-41D0-91D3-ECED117F8B08} {A570C8FC-AEEB-49DF-9A47-9EDB027BEC67} = {3199F749-0082-41D0-91D3-ECED117F8B08} - {A2F192C5-0D7A-43C5-940E-F1CFAB4545CB} = {0FC00E76-4E4B-4E09-B11A-5024EDBBC145} - {A0F932FE-9866-4FD4-8B41-35DFF71DA767} = {0FC00E76-4E4B-4E09-B11A-5024EDBBC145} {41744E85-4BE4-4DA4-91B8-0DFA262CB11B} = {3234C3BB-1632-4684-838E-9D6D382D4D4D} {06CF93D0-29A4-4739-A681-EB6802A03BD8} = {41744E85-4BE4-4DA4-91B8-0DFA262CB11B} {0A0D76F1-5DB6-431B-9258-41591B87AB97} = {41744E85-4BE4-4DA4-91B8-0DFA262CB11B} @@ -412,16 +485,12 @@ Global {338D0653-63A9-401E-AC2C-2804BC7FEE1D} = {0AF37317-F10E-47E8-A4C8-9EA886E00E40} {02314B28-8C8C-4341-8D3B-598FEA8CFF8E} = {0AF37317-F10E-47E8-A4C8-9EA886E00E40} {2B494844-B218-43B8-9FC3-9D0B2BC22BD6} = {3199F749-0082-41D0-91D3-ECED117F8B08} - {59B51CA8-F2C1-402C-B97F-5B0BB6B74A2A} = {0FC00E76-4E4B-4E09-B11A-5024EDBBC145} {B608157C-D7AE-410E-9284-64A30B0B5404} = {788A01F9-0510-441A-B05B-0CDA0EE87507} {D9B8D10F-3206-482F-8C4F-8079408ED224} = {3199F749-0082-41D0-91D3-ECED117F8B08} {0FC00E76-4E4B-4E09-B11A-5024EDBBC145} = {0AF37317-F10E-47E8-A4C8-9EA886E00E40} {F026BAB4-FBBE-4AF5-8187-AA3ADF540053} = {0AF37317-F10E-47E8-A4C8-9EA886E00E40} - {D02ADFB9-822C-47BD-B5E9-4469F57CD8AB} = {F026BAB4-FBBE-4AF5-8187-AA3ADF540053} - {52003D9E-B698-4E48-BD97-3702DD8F91A9} = {F026BAB4-FBBE-4AF5-8187-AA3ADF540053} {0987AF3F-6EFC-4AE6-9007-DE9533934D82} = {3199F749-0082-41D0-91D3-ECED117F8B08} {86B19A1B-17F9-410F-8B97-74FE3EE7A4BE} = {0AF37317-F10E-47E8-A4C8-9EA886E00E40} - {38508541-4429-4A30-9D84-B151250E08B8} = {86B19A1B-17F9-410F-8B97-74FE3EE7A4BE} {35AE0870-0A6D-4F27-B534-B8DCDFD11A36} = {3234C3BB-1632-4684-838E-9D6D382D4D4D} {90B4A098-01AB-4B35-987E-838F2241DA17} = {3199F749-0082-41D0-91D3-ECED117F8B08} {FCC70943-06B2-4743-A99D-82F5122297F3} = {3234C3BB-1632-4684-838E-9D6D382D4D4D} @@ -449,6 +518,27 @@ Global {F5277287-1776-494B-92EE-7237D1B8949B} = {3199F749-0082-41D0-91D3-ECED117F8B08} {B10EBC65-DB29-44AE-8BEB-E4BD170924C3} = {3199F749-0082-41D0-91D3-ECED117F8B08} {924B529F-D036-464B-B1A6-257CD95143B4} = {3199F749-0082-41D0-91D3-ECED117F8B08} + {6CC256C4-2CE7-4396-A40A-FC55F83189AA} = {0AF37317-F10E-47E8-A4C8-9EA886E00E40} + {3D1C3CB4-663C-439B-A3BA-FADBC951DE19} = {1FC7F5F3-77C7-464A-B571-5953242782D8} + {7D864B82-CF04-43CC-A36F-28DD4B3A8FD9} = {0AF37317-F10E-47E8-A4C8-9EA886E00E40} + {F29089EE-1E58-461B-8408-B6093FBA444D} = {0FC00E76-4E4B-4E09-B11A-5024EDBBC145} + {B3F77BE5-F7ED-41C9-B5CC-B82B98BFEA2A} = {0FC00E76-4E4B-4E09-B11A-5024EDBBC145} + {15EE68C6-F328-4ED8-BC1E-A637250B7F9F} = {0FC00E76-4E4B-4E09-B11A-5024EDBBC145} + {A6E37A46-84F4-4C8B-A8D1-5E389A458893} = {86B19A1B-17F9-410F-8B97-74FE3EE7A4BE} + {4C8698C3-D3D7-43E5-93E5-DF5A687A9ECC} = {86B19A1B-17F9-410F-8B97-74FE3EE7A4BE} + {977141C7-27F0-4BC4-81FF-FF9D7A452332} = {F026BAB4-FBBE-4AF5-8187-AA3ADF540053} + {CF532FBC-DE02-4824-B469-2BBB5625B85D} = {F026BAB4-FBBE-4AF5-8187-AA3ADF540053} + {AFF7D4F6-3BC8-42B6-8536-F43108320E30} = {0FC00E76-4E4B-4E09-B11A-5024EDBBC145} + {01A15E08-A422-4AF3-8241-D3466D5CD9B3} = {227AEB37-EA4B-4ABD-929D-9E4A010BC30D} + {227AEB37-EA4B-4ABD-929D-9E4A010BC30D} = {0AF37317-F10E-47E8-A4C8-9EA886E00E40} + {1FC7F5F3-77C7-464A-B571-5953242782D8} = {0AF37317-F10E-47E8-A4C8-9EA886E00E40} + {CDACF4FC-7B0F-4EF5-A5BB-E71110A00C6B} = {227AEB37-EA4B-4ABD-929D-9E4A010BC30D} + {020A13D7-4A66-4F88-B3C3-52342FA25C90} = {227AEB37-EA4B-4ABD-929D-9E4A010BC30D} + {1790AB06-4AB8-47C0-8C68-798BCBD310FE} = {1FC7F5F3-77C7-464A-B571-5953242782D8} + {B51471DF-9B83-48F2-A705-5FB357A003C2} = {1FC7F5F3-77C7-464A-B571-5953242782D8} + {D90F08A6-5658-4DFE-A203-50B092CCD90F} = {0AF37317-F10E-47E8-A4C8-9EA886E00E40} + {32EA8BAC-5AF8-4310-BB0F-044C8A83ADEA} = {0AF37317-F10E-47E8-A4C8-9EA886E00E40} + {B76A68AA-2B92-48D9-809A-8BF56126A577} = {0AF37317-F10E-47E8-A4C8-9EA886E00E40} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {0B0CD26D-8067-4667-863E-6B0EE7EDAA42} diff --git a/Tests/RCommon.Mediator.MediatR.Tests/Usings.cs b/Tests/RCommon.ApplicationServices.Tests/GlobalUsings.cs similarity index 100% rename from Tests/RCommon.Mediator.MediatR.Tests/Usings.cs rename to Tests/RCommon.ApplicationServices.Tests/GlobalUsings.cs diff --git a/Tests/RCommon.ApplicationServices.Tests/RCommon.ApplicationServices.Tests.csproj b/Tests/RCommon.ApplicationServices.Tests/RCommon.ApplicationServices.Tests.csproj new file mode 100644 index 00000000..c3a191a4 --- /dev/null +++ b/Tests/RCommon.ApplicationServices.Tests/RCommon.ApplicationServices.Tests.csproj @@ -0,0 +1,32 @@ + + + + net8.0 + enable + enable + + false + true + + + + + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + + + + diff --git a/Tests/RCommon.Caching.Tests/CacheKeyTests.cs b/Tests/RCommon.Caching.Tests/CacheKeyTests.cs new file mode 100644 index 00000000..ef74a35b --- /dev/null +++ b/Tests/RCommon.Caching.Tests/CacheKeyTests.cs @@ -0,0 +1,63 @@ +using Moq; +using NUnit.Framework; +using RCommon.Caching; +using System; + +namespace RCommon.Caching.Tests +{ + [TestFixture] + public class CacheKeyTests + { + private MockRepository mockRepository; + + + + [SetUp] + public void SetUp() + { + this.mockRepository = new MockRepository(MockBehavior.Strict); + + + } + + private CacheKey CreateCacheKey() + { + return new CacheKey( + TODO); + } + + [Test] + public void With_StateUnderTest_ExpectedBehavior() + { + // Arrange + var cacheKey = this.CreateCacheKey(); + string[] keys = null; + + // Act + var result = cacheKey.With( + keys); + + // Assert + Assert.Fail(); + this.mockRepository.VerifyAll(); + } + + [Test] + public void With_StateUnderTest_ExpectedBehavior1() + { + // Arrange + var cacheKey = this.CreateCacheKey(); + Type ownerType = null; + string[] keys = null; + + // Act + var result = cacheKey.With( + ownerType, + keys); + + // Assert + Assert.Fail(); + this.mockRepository.VerifyAll(); + } + } +} diff --git a/Tests/RCommon.Messaging.MassTransit.Tests/Usings.cs b/Tests/RCommon.Caching.Tests/GlobalUsings.cs similarity index 100% rename from Tests/RCommon.Messaging.MassTransit.Tests/Usings.cs rename to Tests/RCommon.Caching.Tests/GlobalUsings.cs diff --git a/Tests/RCommon.Caching.Tests/RCommon.Caching.Tests.csproj b/Tests/RCommon.Caching.Tests/RCommon.Caching.Tests.csproj new file mode 100644 index 00000000..c14f2973 --- /dev/null +++ b/Tests/RCommon.Caching.Tests/RCommon.Caching.Tests.csproj @@ -0,0 +1,32 @@ + + + + net8.0 + enable + enable + + false + true + + + + + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + + + + diff --git a/Tests/RCommon.Core.Tests/EventHandling/InMemoryEventBusTests.cs b/Tests/RCommon.Core.Tests/EventHandling/InMemoryEventBusTests.cs new file mode 100644 index 00000000..4703b9dc --- /dev/null +++ b/Tests/RCommon.Core.Tests/EventHandling/InMemoryEventBusTests.cs @@ -0,0 +1,78 @@ +using Microsoft.Extensions.DependencyInjection; +using Moq; +using NUnit.Framework; +using RCommon.EventHandling; +using System; +using System.Threading.Tasks; + +namespace RCommon.Core.Tests.EventHandling +{ + [TestFixture] + public class InMemoryEventBusTests + { + private MockRepository mockRepository; + + private Mock mockServiceProvider; + private Mock mockServiceCollection; + + [SetUp] + public void SetUp() + { + this.mockRepository = new MockRepository(MockBehavior.Strict); + + this.mockServiceProvider = this.mockRepository.Create(); + this.mockServiceCollection = this.mockRepository.Create(); + } + + private InMemoryEventBus CreateInMemoryEventBus() + { + return new InMemoryEventBus( + this.mockServiceProvider.Object, + this.mockServiceCollection.Object); + } + + [Test] + public void Subscribe_StateUnderTest_ExpectedBehavior() + { + // Arrange + var inMemoryEventBus = this.CreateInMemoryEventBus(); + + // Act + var result = inMemoryEventBus.Subscribe(); + + // Assert + Assert.Fail(); + this.mockRepository.VerifyAll(); + } + + [Test] + public void SubscribeAllHandledEvents_StateUnderTest_ExpectedBehavior() + { + // Arrange + var inMemoryEventBus = this.CreateInMemoryEventBus(); + + // Act + var result = inMemoryEventBus.SubscribeAllHandledEvents(); + + // Assert + Assert.Fail(); + this.mockRepository.VerifyAll(); + } + + [Test] + public async Task PublishAsync_StateUnderTest_ExpectedBehavior() + { + // Arrange + var inMemoryEventBus = this.CreateInMemoryEventBus(); + TEvent @event = default(TEvent); + + // Act + await inMemoryEventBus.PublishAsync( + @event); + + // Assert + Assert.Fail(); + this.mockRepository.VerifyAll(); + } + } +} diff --git a/Tests/RCommon.Core.Tests/EventHandling/Producers/InMemoryTransactionalEventRouterTests.cs b/Tests/RCommon.Core.Tests/EventHandling/Producers/InMemoryTransactionalEventRouterTests.cs new file mode 100644 index 00000000..886a48ee --- /dev/null +++ b/Tests/RCommon.Core.Tests/EventHandling/Producers/InMemoryTransactionalEventRouterTests.cs @@ -0,0 +1,96 @@ +using Microsoft.Extensions.Logging; +using Moq; +using NUnit.Framework; +using RCommon.EventHandling.Producers; +using System; +using System.Threading.Tasks; + +namespace RCommon.Core.Tests.EventHandling.Producers +{ + [TestFixture] + public class InMemoryTransactionalEventRouterTests + { + private MockRepository mockRepository; + + private Mock mockServiceProvider; + private Mock> mockLogger; + + [SetUp] + public void SetUp() + { + this.mockRepository = new MockRepository(MockBehavior.Strict); + + this.mockServiceProvider = this.mockRepository.Create(); + this.mockLogger = this.mockRepository.Create>(); + } + + private InMemoryTransactionalEventRouter CreateInMemoryTransactionalEventRouter() + { + return new InMemoryTransactionalEventRouter( + this.mockServiceProvider.Object, + this.mockLogger.Object); + } + + [Test] + public async Task RouteEventsAsync_StateUnderTest_ExpectedBehavior() + { + // Arrange + var inMemoryTransactionalEventRouter = this.CreateInMemoryTransactionalEventRouter(); + IEnumerable transactionalEvents = null; + + // Act + await inMemoryTransactionalEventRouter.RouteEventsAsync( + transactionalEvents); + + // Assert + Assert.Fail(); + this.mockRepository.VerifyAll(); + } + + [Test] + public async Task RouteEventsAsync_StateUnderTest_ExpectedBehavior1() + { + // Arrange + var inMemoryTransactionalEventRouter = this.CreateInMemoryTransactionalEventRouter(); + + // Act + await inMemoryTransactionalEventRouter.RouteEventsAsync(); + + // Assert + Assert.Fail(); + this.mockRepository.VerifyAll(); + } + + [Test] + public void AddTransactionalEvent_StateUnderTest_ExpectedBehavior() + { + // Arrange + var inMemoryTransactionalEventRouter = this.CreateInMemoryTransactionalEventRouter(); + ISerializableEvent serializableEvent = null; + + // Act + inMemoryTransactionalEventRouter.AddTransactionalEvent( + serializableEvent); + + // Assert + Assert.Fail(); + this.mockRepository.VerifyAll(); + } + + [Test] + public void AddTransactionalEvents_StateUnderTest_ExpectedBehavior() + { + // Arrange + var inMemoryTransactionalEventRouter = this.CreateInMemoryTransactionalEventRouter(); + IEnumerable serializableEvents = null; + + // Act + inMemoryTransactionalEventRouter.AddTransactionalEvents( + serializableEvents); + + // Assert + Assert.Fail(); + this.mockRepository.VerifyAll(); + } + } +} diff --git a/Tests/RCommon.Core.Tests/EventHandling/Producers/PublishWithEventBusEventProducerTests.cs b/Tests/RCommon.Core.Tests/EventHandling/Producers/PublishWithEventBusEventProducerTests.cs new file mode 100644 index 00000000..f474e331 --- /dev/null +++ b/Tests/RCommon.Core.Tests/EventHandling/Producers/PublishWithEventBusEventProducerTests.cs @@ -0,0 +1,53 @@ +using Microsoft.Extensions.Logging; +using Moq; +using NUnit.Framework; +using RCommon.EventHandling; +using RCommon.EventHandling.Producers; +using System; +using System.Threading.Tasks; + +namespace RCommon.Core.Tests.EventHandling.Producers +{ + [TestFixture] + public class PublishWithEventBusEventProducerTests + { + private MockRepository mockRepository; + + private Mock mockEventBus; + private Mock> mockLogger; + + [SetUp] + public void SetUp() + { + this.mockRepository = new MockRepository(MockBehavior.Strict); + + this.mockEventBus = this.mockRepository.Create(); + this.mockLogger = this.mockRepository.Create>(); + } + + private PublishWithEventBusEventProducer CreatePublishWithEventBusEventProducer() + { + return new PublishWithEventBusEventProducer( + this.mockEventBus.Object, + this.mockLogger.Object); + } + + [Test] + public async Task ProduceEventAsync_StateUnderTest_ExpectedBehavior() + { + // Arrange + var publishWithEventBusEventProducer = this.CreatePublishWithEventBusEventProducer(); + T @event = default(T); + CancellationToken cancellationToken = default(global::System.Threading.CancellationToken); + + // Act + await publishWithEventBusEventProducer.ProduceEventAsync( + @event, + cancellationToken); + + // Assert + Assert.Fail(); + this.mockRepository.VerifyAll(); + } + } +} diff --git a/Tests/RCommon.Messaging.Wolverine.Tests/Usings.cs b/Tests/RCommon.Core.Tests/GlobalUsings.cs similarity index 100% rename from Tests/RCommon.Messaging.Wolverine.Tests/Usings.cs rename to Tests/RCommon.Core.Tests/GlobalUsings.cs diff --git a/Tests/RCommon.Tests/GuardTests.cs b/Tests/RCommon.Core.Tests/GuardTests.cs similarity index 82% rename from Tests/RCommon.Tests/GuardTests.cs rename to Tests/RCommon.Core.Tests/GuardTests.cs index e535d7f1..eba18c82 100644 --- a/Tests/RCommon.Tests/GuardTests.cs +++ b/Tests/RCommon.Core.Tests/GuardTests.cs @@ -3,7 +3,7 @@ using NUnit.Framework; -namespace RCommon.Tests +namespace RCommon.Core.Tests { [TestFixture] public class GuardTests @@ -36,28 +36,28 @@ public void Against_Evaluates_Lambda_WithException() [Test] public void Against_Evaluates_Lambda_WithSuccess() { - try - { - Guard.Against + try + { + Guard.Against ( () => 1 != 1, "Guard check with lambda" ); - } - catch (ArgumentNullException) - { - - Assert.Fail(); - } - catch(Exception) + } + catch (ArgumentNullException) + { + + Assert.Fail(); + } + catch (Exception) { } - + } [Test] [ExpectedException(typeof(InvalidOperationException))] - public void TypeOf_Throws_InvalidOperationException_When_Instance_Does_Not_Match_Type () + public void TypeOf_Throws_InvalidOperationException_When_Instance_Does_Not_Match_Type() { Guard.TypeOf(new Exception(), "Guard check with TypeOf"); } @@ -70,11 +70,11 @@ public void TypeOf_Does_Not_Throw_When_Instance_Does_Matches_Type() { Guard.TypeOf(new InvalidOperationException(), "Guard check with TypeOf"); } - catch(InvalidOperationException) + catch (InvalidOperationException) { Assert.Fail(); } - catch(Exception) + catch (Exception) { } diff --git a/Tests/RCommon.Messaging.MassTransit.Tests/RCommon.Messaging.MassTransit.Tests.csproj b/Tests/RCommon.Core.Tests/RCommon.Core.Tests.csproj similarity index 74% rename from Tests/RCommon.Messaging.MassTransit.Tests/RCommon.Messaging.MassTransit.Tests.csproj rename to Tests/RCommon.Core.Tests/RCommon.Core.Tests.csproj index 5672fb3a..d09fe045 100644 --- a/Tests/RCommon.Messaging.MassTransit.Tests/RCommon.Messaging.MassTransit.Tests.csproj +++ b/Tests/RCommon.Core.Tests/RCommon.Core.Tests.csproj @@ -1,15 +1,18 @@ - net8.0; + net8.0 enable enable false + true + + @@ -23,8 +26,7 @@ - - + diff --git a/Tests/RCommon.Core.Tests/SimpleGuidGeneratorTests.cs b/Tests/RCommon.Core.Tests/SimpleGuidGeneratorTests.cs new file mode 100644 index 00000000..d89ec8c8 --- /dev/null +++ b/Tests/RCommon.Core.Tests/SimpleGuidGeneratorTests.cs @@ -0,0 +1,41 @@ +using Moq; +using NUnit.Framework; +using RCommon; + +namespace RCommon.Core.Tests +{ + [TestFixture] + public class SimpleGuidGeneratorTests + { + private MockRepository mockRepository; + + + + [SetUp] + public void SetUp() + { + this.mockRepository = new MockRepository(MockBehavior.Strict); + + + } + + private SimpleGuidGenerator CreateSimpleGuidGenerator() + { + return new SimpleGuidGenerator(); + } + + [Test] + public void Create_StateUnderTest_ExpectedBehavior() + { + // Arrange + var simpleGuidGenerator = this.CreateSimpleGuidGenerator(); + + // Act + var result = simpleGuidGenerator.Create(); + + // Assert + Assert.Fail(); + this.mockRepository.VerifyAll(); + } + } +} diff --git a/Tests/RCommon.Persistence.Dapper.Tests/Configurations/CustomerMap.cs b/Tests/RCommon.Dapper.Tests/Configurations/CustomerMap.cs similarity index 100% rename from Tests/RCommon.Persistence.Dapper.Tests/Configurations/CustomerMap.cs rename to Tests/RCommon.Dapper.Tests/Configurations/CustomerMap.cs diff --git a/Tests/RCommon.Persistence.Dapper.Tests/Configurations/OrderMap.cs b/Tests/RCommon.Dapper.Tests/Configurations/OrderMap.cs similarity index 100% rename from Tests/RCommon.Persistence.Dapper.Tests/Configurations/OrderMap.cs rename to Tests/RCommon.Dapper.Tests/Configurations/OrderMap.cs diff --git a/Tests/RCommon.Persistence.Dapper.Tests/Configurations/SalesPersonMap.cs b/Tests/RCommon.Dapper.Tests/Configurations/SalesPersonMap.cs similarity index 100% rename from Tests/RCommon.Persistence.Dapper.Tests/Configurations/SalesPersonMap.cs rename to Tests/RCommon.Dapper.Tests/Configurations/SalesPersonMap.cs diff --git a/Tests/RCommon.Persistence.Dapper.Tests/DapperRepositoryIntegrationTests.cs b/Tests/RCommon.Dapper.Tests/DapperRepositoryIntegrationTests.cs similarity index 100% rename from Tests/RCommon.Persistence.Dapper.Tests/DapperRepositoryIntegrationTests.cs rename to Tests/RCommon.Dapper.Tests/DapperRepositoryIntegrationTests.cs diff --git a/Tests/RCommon.Persistence.Dapper.Tests/DapperTestBase.cs b/Tests/RCommon.Dapper.Tests/DapperTestBase.cs similarity index 100% rename from Tests/RCommon.Persistence.Dapper.Tests/DapperTestBase.cs rename to Tests/RCommon.Dapper.Tests/DapperTestBase.cs diff --git a/Tests/RCommon.Dapper.Tests/GlobalUsings.cs b/Tests/RCommon.Dapper.Tests/GlobalUsings.cs new file mode 100644 index 00000000..cefced49 --- /dev/null +++ b/Tests/RCommon.Dapper.Tests/GlobalUsings.cs @@ -0,0 +1 @@ +global using NUnit.Framework; \ No newline at end of file diff --git a/Tests/RCommon.Mediator.MediatR.Tests/RCommon.Mediator.MediatR.Tests.csproj b/Tests/RCommon.Dapper.Tests/RCommon.Dapper.Tests.csproj similarity index 50% rename from Tests/RCommon.Mediator.MediatR.Tests/RCommon.Mediator.MediatR.Tests.csproj rename to Tests/RCommon.Dapper.Tests/RCommon.Dapper.Tests.csproj index c02ef958..161849d6 100644 --- a/Tests/RCommon.Mediator.MediatR.Tests/RCommon.Mediator.MediatR.Tests.csproj +++ b/Tests/RCommon.Dapper.Tests/RCommon.Dapper.Tests.csproj @@ -1,29 +1,41 @@ - + - net8.0; + net8.0 enable enable false + true - + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive + - + + + Always + + + diff --git a/Tests/RCommon.Persistence.Dapper.Tests/TestDbConnection.cs b/Tests/RCommon.Dapper.Tests/TestDbConnection.cs similarity index 100% rename from Tests/RCommon.Persistence.Dapper.Tests/TestDbConnection.cs rename to Tests/RCommon.Dapper.Tests/TestDbConnection.cs diff --git a/Tests/RCommon.Persistence.Dapper.Tests/appsettings.json b/Tests/RCommon.Dapper.Tests/appsettings.json similarity index 100% rename from Tests/RCommon.Persistence.Dapper.Tests/appsettings.json rename to Tests/RCommon.Dapper.Tests/appsettings.json diff --git a/Tests/RCommon.Persistence.EFCore.Tests/EFCoreRepositoryIntegrationTests.cs b/Tests/RCommon.EFCore.Tests/EFCoreRepositoryIntegrationTests.cs similarity index 100% rename from Tests/RCommon.Persistence.EFCore.Tests/EFCoreRepositoryIntegrationTests.cs rename to Tests/RCommon.EFCore.Tests/EFCoreRepositoryIntegrationTests.cs diff --git a/Tests/RCommon.Persistence.EFCore.Tests/EFCoreTestBase.cs b/Tests/RCommon.EFCore.Tests/EFCoreTestBase.cs similarity index 100% rename from Tests/RCommon.Persistence.EFCore.Tests/EFCoreTestBase.cs rename to Tests/RCommon.EFCore.Tests/EFCoreTestBase.cs diff --git a/Tests/RCommon.EFCore.Tests/GlobalUsings.cs b/Tests/RCommon.EFCore.Tests/GlobalUsings.cs new file mode 100644 index 00000000..cefced49 --- /dev/null +++ b/Tests/RCommon.EFCore.Tests/GlobalUsings.cs @@ -0,0 +1 @@ +global using NUnit.Framework; \ No newline at end of file diff --git a/Tests/RCommon.EFCore.Tests/RCommon.EFCore.Tests.csproj b/Tests/RCommon.EFCore.Tests/RCommon.EFCore.Tests.csproj new file mode 100644 index 00000000..721f7dc8 --- /dev/null +++ b/Tests/RCommon.EFCore.Tests/RCommon.EFCore.Tests.csproj @@ -0,0 +1,42 @@ + + + + net8.0 + enable + enable + + false + true + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + + + + + + + + + + + + + + + + + + Always + + + + diff --git a/Tests/RCommon.EFCore.Tests/UnitTest1.cs b/Tests/RCommon.EFCore.Tests/UnitTest1.cs new file mode 100644 index 00000000..81e0862b --- /dev/null +++ b/Tests/RCommon.EFCore.Tests/UnitTest1.cs @@ -0,0 +1,16 @@ +namespace RCommon.EFCore.Tests +{ + public class Tests + { + [SetUp] + public void Setup() + { + } + + [Test] + public void Test1() + { + Assert.Pass(); + } + } +} \ No newline at end of file diff --git a/Tests/RCommon.Persistence.EFCore.Tests/appsettings.json b/Tests/RCommon.EFCore.Tests/appsettings.json similarity index 100% rename from Tests/RCommon.Persistence.EFCore.Tests/appsettings.json rename to Tests/RCommon.EFCore.Tests/appsettings.json diff --git a/Tests/RCommon.Emailing.SendGrid.Tests/RCommon.Emailing.SendGrid.Tests.csproj b/Tests/RCommon.Emailing.SendGrid.Tests/RCommon.Emailing.SendGrid.Tests.csproj index 546f9c58..60ba00f5 100644 --- a/Tests/RCommon.Emailing.SendGrid.Tests/RCommon.Emailing.SendGrid.Tests.csproj +++ b/Tests/RCommon.Emailing.SendGrid.Tests/RCommon.Emailing.SendGrid.Tests.csproj @@ -11,8 +11,8 @@ - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/Tests/RCommon.Emailing.Tests/RCommon.Emailing.Tests.csproj b/Tests/RCommon.Emailing.Tests/RCommon.Emailing.Tests.csproj index 30a0ed4c..497be620 100644 --- a/Tests/RCommon.Emailing.Tests/RCommon.Emailing.Tests.csproj +++ b/Tests/RCommon.Emailing.Tests/RCommon.Emailing.Tests.csproj @@ -10,8 +10,8 @@ - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/Tests/RCommon.Entities.Tests/GlobalUsings.cs b/Tests/RCommon.Entities.Tests/GlobalUsings.cs new file mode 100644 index 00000000..cefced49 --- /dev/null +++ b/Tests/RCommon.Entities.Tests/GlobalUsings.cs @@ -0,0 +1 @@ +global using NUnit.Framework; \ No newline at end of file diff --git a/Tests/RCommon.Entities.Tests/RCommon.Entities.Tests.csproj b/Tests/RCommon.Entities.Tests/RCommon.Entities.Tests.csproj new file mode 100644 index 00000000..29b7ec76 --- /dev/null +++ b/Tests/RCommon.Entities.Tests/RCommon.Entities.Tests.csproj @@ -0,0 +1,32 @@ + + + + net8.0 + enable + enable + + false + true + + + + + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + + + + diff --git a/Tests/RCommon.FluentValidation.Tests/GlobalUsings.cs b/Tests/RCommon.FluentValidation.Tests/GlobalUsings.cs new file mode 100644 index 00000000..cefced49 --- /dev/null +++ b/Tests/RCommon.FluentValidation.Tests/GlobalUsings.cs @@ -0,0 +1 @@ +global using NUnit.Framework; \ No newline at end of file diff --git a/Tests/RCommon.FluentValidation.Tests/RCommon.FluentValidation.Tests.csproj b/Tests/RCommon.FluentValidation.Tests/RCommon.FluentValidation.Tests.csproj new file mode 100644 index 00000000..f2402508 --- /dev/null +++ b/Tests/RCommon.FluentValidation.Tests/RCommon.FluentValidation.Tests.csproj @@ -0,0 +1,32 @@ + + + + net8.0 + enable + enable + + false + true + + + + + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + + + + diff --git a/Tests/RCommon.Json.Tests/GlobalUsings.cs b/Tests/RCommon.Json.Tests/GlobalUsings.cs new file mode 100644 index 00000000..cefced49 --- /dev/null +++ b/Tests/RCommon.Json.Tests/GlobalUsings.cs @@ -0,0 +1 @@ +global using NUnit.Framework; \ No newline at end of file diff --git a/Tests/RCommon.Json.Tests/RCommon.Json.Tests.csproj b/Tests/RCommon.Json.Tests/RCommon.Json.Tests.csproj new file mode 100644 index 00000000..f42ed294 --- /dev/null +++ b/Tests/RCommon.Json.Tests/RCommon.Json.Tests.csproj @@ -0,0 +1,28 @@ + + + + net8.0 + enable + enable + + false + true + + + + + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + diff --git a/Tests/RCommon.JsonNet.Tests/GlobalUsings.cs b/Tests/RCommon.JsonNet.Tests/GlobalUsings.cs new file mode 100644 index 00000000..cefced49 --- /dev/null +++ b/Tests/RCommon.JsonNet.Tests/GlobalUsings.cs @@ -0,0 +1 @@ +global using NUnit.Framework; \ No newline at end of file diff --git a/Tests/RCommon.JsonNet.Tests/RCommon.JsonNet.Tests.csproj b/Tests/RCommon.JsonNet.Tests/RCommon.JsonNet.Tests.csproj new file mode 100644 index 00000000..f42ed294 --- /dev/null +++ b/Tests/RCommon.JsonNet.Tests/RCommon.JsonNet.Tests.csproj @@ -0,0 +1,28 @@ + + + + net8.0 + enable + enable + + false + true + + + + + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + diff --git a/Tests/RCommon.Linq2Db.Tests/GlobalUsings.cs b/Tests/RCommon.Linq2Db.Tests/GlobalUsings.cs new file mode 100644 index 00000000..cefced49 --- /dev/null +++ b/Tests/RCommon.Linq2Db.Tests/GlobalUsings.cs @@ -0,0 +1 @@ +global using NUnit.Framework; \ No newline at end of file diff --git a/Tests/RCommon.Persistence.Linq2Db.Tests/Linq2DbRepositoryIntegrationTests.cs b/Tests/RCommon.Linq2Db.Tests/Linq2DbRepositoryIntegrationTests.cs similarity index 100% rename from Tests/RCommon.Persistence.Linq2Db.Tests/Linq2DbRepositoryIntegrationTests.cs rename to Tests/RCommon.Linq2Db.Tests/Linq2DbRepositoryIntegrationTests.cs diff --git a/Tests/RCommon.Persistence.Linq2Db.Tests/Linq2DbTestBase.cs b/Tests/RCommon.Linq2Db.Tests/Linq2DbTestBase.cs similarity index 100% rename from Tests/RCommon.Persistence.Linq2Db.Tests/Linq2DbTestBase.cs rename to Tests/RCommon.Linq2Db.Tests/Linq2DbTestBase.cs diff --git a/Tests/RCommon.Linq2Db.Tests/RCommon.Linq2Db.Tests.csproj b/Tests/RCommon.Linq2Db.Tests/RCommon.Linq2Db.Tests.csproj new file mode 100644 index 00000000..7f4cb94a --- /dev/null +++ b/Tests/RCommon.Linq2Db.Tests/RCommon.Linq2Db.Tests.csproj @@ -0,0 +1,33 @@ + + + + net8.0 + enable + enable + + false + true + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Tests/RCommon.Persistence.Linq2Db.Tests/TestDataConnection.cs b/Tests/RCommon.Linq2Db.Tests/TestDataConnection.cs similarity index 100% rename from Tests/RCommon.Persistence.Linq2Db.Tests/TestDataConnection.cs rename to Tests/RCommon.Linq2Db.Tests/TestDataConnection.cs diff --git a/Tests/RCommon.Persistence.Linq2Db.Tests/appsettings.json b/Tests/RCommon.Linq2Db.Tests/appsettings.json similarity index 100% rename from Tests/RCommon.Persistence.Linq2Db.Tests/appsettings.json rename to Tests/RCommon.Linq2Db.Tests/appsettings.json diff --git a/Tests/RCommon.MassTransit.Tests/GlobalUsings.cs b/Tests/RCommon.MassTransit.Tests/GlobalUsings.cs new file mode 100644 index 00000000..cefced49 --- /dev/null +++ b/Tests/RCommon.MassTransit.Tests/GlobalUsings.cs @@ -0,0 +1 @@ +global using NUnit.Framework; \ No newline at end of file diff --git a/Tests/RCommon.MassTransit.Tests/RCommon.MassTransit.Tests.csproj b/Tests/RCommon.MassTransit.Tests/RCommon.MassTransit.Tests.csproj new file mode 100644 index 00000000..f5ff784d --- /dev/null +++ b/Tests/RCommon.MassTransit.Tests/RCommon.MassTransit.Tests.csproj @@ -0,0 +1,32 @@ + + + + net8.0 + enable + enable + + false + true + + + + + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + + + + diff --git a/Tests/RCommon.MediatR.Tests/GlobalUsings.cs b/Tests/RCommon.MediatR.Tests/GlobalUsings.cs new file mode 100644 index 00000000..cefced49 --- /dev/null +++ b/Tests/RCommon.MediatR.Tests/GlobalUsings.cs @@ -0,0 +1 @@ +global using NUnit.Framework; \ No newline at end of file diff --git a/Tests/RCommon.MediatR.Tests/RCommon.MediatR.Tests.csproj b/Tests/RCommon.MediatR.Tests/RCommon.MediatR.Tests.csproj new file mode 100644 index 00000000..f0d28322 --- /dev/null +++ b/Tests/RCommon.MediatR.Tests/RCommon.MediatR.Tests.csproj @@ -0,0 +1,32 @@ + + + + net8.0 + enable + enable + + false + true + + + + + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + + + + diff --git a/Tests/RCommon.Mediator.MediatR.Tests/MediatRTestBase.cs b/Tests/RCommon.Mediator.MediatR.Tests/MediatRTestBase.cs deleted file mode 100644 index 203afd91..00000000 --- a/Tests/RCommon.Mediator.MediatR.Tests/MediatRTestBase.cs +++ /dev/null @@ -1,62 +0,0 @@ -using Microsoft.AspNetCore.Hosting; -using Microsoft.AspNetCore.TestHost; -using Microsoft.AspNetCore; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Logging; -using RCommon.TestBase; -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace RCommon.Mediator.MediatR.Tests -{ - public class MediatRTestBase : TestBootstrapper - { - - public MediatRTestBase() : base() - { - - } - - public TestServer Server { get; private set; } - public HttpClient Client { get; private set; } - - protected void InitializeRCommon(IServiceCollection services) - { - var builder = WebHost.CreateDefaultBuilder() - .UseEnvironment(EnvironmentName.Development) - .ConfigureTestServices( - services => - { - //services.AddTransient((a) => this.SomeMockService.Object); - services.AddRCommon() - .WithSequentialGuidGenerator(guidOptions => - { - guidOptions.DefaultSequentialGuidType = SequentialGuidType.SequentialAsString; - }); - - this.ServiceProvider = services.BuildServiceProvider(); - this.Logger = this.ServiceProvider.GetService>(); - - Debug.WriteLine($"Total Services Registered: {services.Count}"); - foreach (var service in services) - { - Debug.WriteLine($"Service: {service.ServiceType.FullName}\n Lifetime: {service.Lifetime}\n Instance: {service.ImplementationType?.FullName}"); - } - }); - - this.Server = new TestServer(builder); - this.Client = this.Server.CreateClient(); - this.Client.BaseAddress = new Uri("http://localhost"); - - base.InitializeBootstrapper(services); - - - } - - } - -} diff --git a/Tests/RCommon.Mediator.Tests/GlobalUsings.cs b/Tests/RCommon.Mediator.Tests/GlobalUsings.cs new file mode 100644 index 00000000..cefced49 --- /dev/null +++ b/Tests/RCommon.Mediator.Tests/GlobalUsings.cs @@ -0,0 +1 @@ +global using NUnit.Framework; \ No newline at end of file diff --git a/Tests/RCommon.Mediator.Tests/RCommon.Mediator.Tests.csproj b/Tests/RCommon.Mediator.Tests/RCommon.Mediator.Tests.csproj new file mode 100644 index 00000000..fd7027b7 --- /dev/null +++ b/Tests/RCommon.Mediator.Tests/RCommon.Mediator.Tests.csproj @@ -0,0 +1,32 @@ + + + + net8.0 + enable + enable + + false + true + + + + + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + + + + diff --git a/Tests/RCommon.MemoryCache.Tests/GlobalUsings.cs b/Tests/RCommon.MemoryCache.Tests/GlobalUsings.cs new file mode 100644 index 00000000..cefced49 --- /dev/null +++ b/Tests/RCommon.MemoryCache.Tests/GlobalUsings.cs @@ -0,0 +1 @@ +global using NUnit.Framework; \ No newline at end of file diff --git a/Tests/RCommon.MemoryCache.Tests/RCommon.MemoryCache.Tests.csproj b/Tests/RCommon.MemoryCache.Tests/RCommon.MemoryCache.Tests.csproj new file mode 100644 index 00000000..baadb382 --- /dev/null +++ b/Tests/RCommon.MemoryCache.Tests/RCommon.MemoryCache.Tests.csproj @@ -0,0 +1,32 @@ + + + + net8.0 + enable + enable + + false + true + + + + + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + + + + diff --git a/Tests/RCommon.Messaging.MassTransit.Tests/MassTransitMessagingTestBase.cs b/Tests/RCommon.Messaging.MassTransit.Tests/MassTransitMessagingTestBase.cs deleted file mode 100644 index e9925f0d..00000000 --- a/Tests/RCommon.Messaging.MassTransit.Tests/MassTransitMessagingTestBase.cs +++ /dev/null @@ -1,41 +0,0 @@ -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Logging; -using RCommon.TestBase; -using System; -using System.Collections.Generic; -using System.Data.Common; -using System.Data; -using System.Diagnostics; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace RCommon.Messaging.MassTransit.Tests -{ - public abstract class MassTransitMessagingTestBase : TestBootstrapper - { - - protected void InitializeRCommon(IServiceCollection services) - { - - base.InitializeBootstrapper(services); - - services.AddRCommon() - .WithSequentialGuidGenerator(guidOptions => - { - guidOptions.DefaultSequentialGuidType = SequentialGuidType.SequentialAsString; - }); - - this.ServiceProvider = services.BuildServiceProvider(); - this.Logger = this.ServiceProvider.GetService>(); - - Debug.WriteLine($"Total Services Registered: {services.Count}"); - foreach (var service in services) - { - Debug.WriteLine($"Service: {service.ServiceType.FullName}\n Lifetime: {service.Lifetime}\n Instance: {service.ImplementationType?.FullName}"); - } - - - } - } -} diff --git a/Tests/RCommon.Messaging.MassTransit.Tests/SendWithMassTransitEventProducerTests.cs b/Tests/RCommon.Messaging.MassTransit.Tests/SendWithMassTransitEventProducerTests.cs deleted file mode 100644 index c90fdf22..00000000 --- a/Tests/RCommon.Messaging.MassTransit.Tests/SendWithMassTransitEventProducerTests.cs +++ /dev/null @@ -1,58 +0,0 @@ -using MassTransit; -using MassTransit.Testing; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Logging; -using Moq; -using NUnit.Framework; -using RCommon.EventHandling; -using RCommon.Messaging.MassTransit; -using System; -using System.Threading.Tasks; - -namespace RCommon.Messaging.MassTransit.Tests -{ - [TestFixture] - public class SendWithMassTransitEventProducerTests : MassTransitMessagingTestBase - { - private MockRepository _mockRepository; - private Mock _mockPublishEndpoint; - private ITestHarness _testHarness; - - public SendWithMassTransitEventProducerTests() : base() - { - var services = new ServiceCollection(); - this.InitializeRCommon(services); - } - - - [SetUp] - public void SetUp() - { - this.Logger.LogInformation("Beginning New Test Setup"); - this._mockRepository = new MockRepository(MockBehavior.Strict); - - this._mockPublishEndpoint = this._mockRepository.Create(); - this._testHarness = this.ServiceProvider.GetRequiredService(); - } - - [OneTimeSetUp] - public void InitialSetup() - { - this.Logger.LogInformation("Beginning Onetime setup"); - } - - [TearDown] - public void TearDown() - { - this.Logger.LogInformation("Tearing down Test"); - } - - [OneTimeTearDown] - public void OneTimeTearDown() - { - this.Logger.LogInformation("Tearing down Test Suite"); - } - - - } -} diff --git a/Tests/RCommon.Messaging.Wolverine.Tests/WolverineMessagingTestBase.cs b/Tests/RCommon.Messaging.Wolverine.Tests/WolverineMessagingTestBase.cs deleted file mode 100644 index 2f921661..00000000 --- a/Tests/RCommon.Messaging.Wolverine.Tests/WolverineMessagingTestBase.cs +++ /dev/null @@ -1,41 +0,0 @@ -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Logging; -using RCommon.TestBase; -using System; -using System.Collections.Generic; -using System.Data.Common; -using System.Data; -using System.Diagnostics; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace RCommon.Messaging.Wolverine.Tests -{ - public abstract class WolverineMessagingTestBase : TestBootstrapper - { - - protected void InitializeRCommon(IServiceCollection services) - { - - base.InitializeBootstrapper(services); - - services.AddRCommon() - .WithSequentialGuidGenerator(guidOptions => - { - guidOptions.DefaultSequentialGuidType = SequentialGuidType.SequentialAsString; - }); - - this.ServiceProvider = services.BuildServiceProvider(); - this.Logger = this.ServiceProvider.GetService>(); - - Debug.WriteLine($"Total Services Registered: {services.Count}"); - foreach (var service in services) - { - Debug.WriteLine($"Service: {service.ServiceType.FullName}\n Lifetime: {service.Lifetime}\n Instance: {service.ImplementationType?.FullName}"); - } - - - } - } -} diff --git a/Tests/RCommon.Models.Tests/GlobalUsings.cs b/Tests/RCommon.Models.Tests/GlobalUsings.cs new file mode 100644 index 00000000..cefced49 --- /dev/null +++ b/Tests/RCommon.Models.Tests/GlobalUsings.cs @@ -0,0 +1 @@ +global using NUnit.Framework; \ No newline at end of file diff --git a/Tests/RCommon.Models.Tests/RCommon.Models.Tests.csproj b/Tests/RCommon.Models.Tests/RCommon.Models.Tests.csproj new file mode 100644 index 00000000..0072a6d1 --- /dev/null +++ b/Tests/RCommon.Models.Tests/RCommon.Models.Tests.csproj @@ -0,0 +1,20 @@ + + + + net8.0 + enable + enable + + false + true + + + + + + + + + + + diff --git a/Tests/RCommon.Persistence.Dapper.Tests/RCommon.Persistence.Dapper.Tests.csproj b/Tests/RCommon.Persistence.Dapper.Tests/RCommon.Persistence.Dapper.Tests.csproj deleted file mode 100644 index c4503c00..00000000 --- a/Tests/RCommon.Persistence.Dapper.Tests/RCommon.Persistence.Dapper.Tests.csproj +++ /dev/null @@ -1,43 +0,0 @@ - - - - net8.0; - - false - - - - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - - - - - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - - - - - - - - - - - - - - - - Always - - - - diff --git a/Tests/RCommon.Persistence.EFCore.Tests/RCommon.Persistence.EFCore.Tests.csproj b/Tests/RCommon.Persistence.EFCore.Tests/RCommon.Persistence.EFCore.Tests.csproj deleted file mode 100644 index b150fe96..00000000 --- a/Tests/RCommon.Persistence.EFCore.Tests/RCommon.Persistence.EFCore.Tests.csproj +++ /dev/null @@ -1,49 +0,0 @@ - - - - net8.0; - - false - - 13c09e79-e5cc-4045-b135-23f5ad00696e - - - - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Always - - - - diff --git a/Tests/RCommon.Persistence.Linq2Db.Tests/RCommon.Persistence.Linq2Db.Tests.csproj b/Tests/RCommon.Persistence.Linq2Db.Tests/RCommon.Persistence.Linq2Db.Tests.csproj deleted file mode 100644 index 124cf073..00000000 --- a/Tests/RCommon.Persistence.Linq2Db.Tests/RCommon.Persistence.Linq2Db.Tests.csproj +++ /dev/null @@ -1,37 +0,0 @@ - - - - net8.0; - enable - - false - - - - - - - - - - - - - - - - - - - - - - - - - - Always - - - - diff --git a/Tests/RCommon.Persistence.Tests/GlobalUsings.cs b/Tests/RCommon.Persistence.Tests/GlobalUsings.cs new file mode 100644 index 00000000..cefced49 --- /dev/null +++ b/Tests/RCommon.Persistence.Tests/GlobalUsings.cs @@ -0,0 +1 @@ +global using NUnit.Framework; \ No newline at end of file diff --git a/Tests/RCommon.Messaging.Wolverine.Tests/RCommon.Messaging.Wolverine.Tests.csproj b/Tests/RCommon.Persistence.Tests/RCommon.Persistence.Tests.csproj similarity index 85% rename from Tests/RCommon.Messaging.Wolverine.Tests/RCommon.Messaging.Wolverine.Tests.csproj rename to Tests/RCommon.Persistence.Tests/RCommon.Persistence.Tests.csproj index 4b894d84..99bac8a0 100644 --- a/Tests/RCommon.Messaging.Wolverine.Tests/RCommon.Messaging.Wolverine.Tests.csproj +++ b/Tests/RCommon.Persistence.Tests/RCommon.Persistence.Tests.csproj @@ -1,11 +1,12 @@ - net8.0; + net8.0 enable enable false + true @@ -22,8 +23,4 @@ - - - - diff --git a/Tests/RCommon.RedisCache.Tests/GlobalUsings.cs b/Tests/RCommon.RedisCache.Tests/GlobalUsings.cs new file mode 100644 index 00000000..cefced49 --- /dev/null +++ b/Tests/RCommon.RedisCache.Tests/GlobalUsings.cs @@ -0,0 +1 @@ +global using NUnit.Framework; \ No newline at end of file diff --git a/Tests/RCommon.RedisCache.Tests/RCommon.RedisCache.Tests.csproj b/Tests/RCommon.RedisCache.Tests/RCommon.RedisCache.Tests.csproj new file mode 100644 index 00000000..f882093f --- /dev/null +++ b/Tests/RCommon.RedisCache.Tests/RCommon.RedisCache.Tests.csproj @@ -0,0 +1,32 @@ + + + + net8.0 + enable + enable + + false + true + + + + + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + + + + diff --git a/Tests/RCommon.SystemTextJson.Tests/GlobalUsings.cs b/Tests/RCommon.SystemTextJson.Tests/GlobalUsings.cs new file mode 100644 index 00000000..cefced49 --- /dev/null +++ b/Tests/RCommon.SystemTextJson.Tests/GlobalUsings.cs @@ -0,0 +1 @@ +global using NUnit.Framework; \ No newline at end of file diff --git a/Tests/RCommon.SystemTextJson.Tests/RCommon.SystemTextJson.Tests.csproj b/Tests/RCommon.SystemTextJson.Tests/RCommon.SystemTextJson.Tests.csproj new file mode 100644 index 00000000..f42ed294 --- /dev/null +++ b/Tests/RCommon.SystemTextJson.Tests/RCommon.SystemTextJson.Tests.csproj @@ -0,0 +1,28 @@ + + + + net8.0 + enable + enable + + false + true + + + + + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + diff --git a/Tests/RCommon.Tests/ExpectedExceptionAttribute.cs b/Tests/RCommon.TestBase/ExpectedExceptionAttribute.cs similarity index 97% rename from Tests/RCommon.Tests/ExpectedExceptionAttribute.cs rename to Tests/RCommon.TestBase/ExpectedExceptionAttribute.cs index f2b51ff9..d84f1b99 100644 --- a/Tests/RCommon.Tests/ExpectedExceptionAttribute.cs +++ b/Tests/RCommon.TestBase/ExpectedExceptionAttribute.cs @@ -1,9 +1,10 @@ using System; +using NUnit.Framework; using NUnit.Framework.Interfaces; using NUnit.Framework.Internal; using NUnit.Framework.Internal.Commands; -namespace NUnit.Framework +namespace RCommon.TestBase { /// /// A simple ExpectedExceptionAttribute diff --git a/Tests/RCommon.Tests/Application/DTO/CustomerDto.cs b/Tests/RCommon.Tests/Application/DTO/CustomerDto.cs deleted file mode 100644 index e2356bda..00000000 --- a/Tests/RCommon.Tests/Application/DTO/CustomerDto.cs +++ /dev/null @@ -1,52 +0,0 @@ -// ------------------------------------------------------------------------------------------------ - -// -// ReSharper disable CheckNamespace -// ReSharper disable ConvertPropertyToExpressionBody -// ReSharper disable DoNotCallOverridableMethodsInConstructor -// ReSharper disable EmptyNamespace -// ReSharper disable InconsistentNaming -// ReSharper disable NotAccessedVariable -// ReSharper disable PartialMethodWithSinglePart -// ReSharper disable PartialTypeWithSinglePart -// ReSharper disable RedundantCast -// ReSharper disable RedundantNameQualifier -// ReSharper disable RedundantOverridenMember -// ReSharper disable UseNameofExpression -// ReSharper disable UsePatternMatching -#pragma warning disable 1591 // Ignore "Missing XML Comment" warning - -using RCommon.Persistence.EFCore.Tests; -using System; -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; - -namespace RCommon.Tests.Application.DTO -{ - // Customers - public partial class CustomerDto - { - public int CustomerId { get; set; } // CustomerID (Primary key) - public string StreetAddress1 { get; set; } // StreetAddress1 (length: 255) - public string StreetAddress2 { get; set; } // StreetAddress2 (length: 255) - public string City { get; set; } // City (length: 255) - public string State { get; set; } // State (length: 255) - public string ZipCode { get; set; } // ZipCode (length: 255) - public string FirstName { get; set; } // FirstName (length: 255) - public string LastName { get; set; } // LastName (length: 255) - - // Reverse navigation - - /// - /// Child Orders where [Orders].[CustomerId] point to this entity (FK_Customer_Orders) - /// - public virtual OrderDto[] Orders { get; set; } // Orders.FK_Customer_Orders - - - - } - -} -// - diff --git a/Tests/RCommon.Tests/Application/DTO/OrderDto.cs b/Tests/RCommon.Tests/Application/DTO/OrderDto.cs deleted file mode 100644 index 54f9e359..00000000 --- a/Tests/RCommon.Tests/Application/DTO/OrderDto.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace RCommon.Tests.Application.DTO -{ - public class OrderDto - { - public OrderDto() - { - - } - - public int OrderId { get; set; } // OrderID (Primary key) - public DateTime? OrderDate { get; set; } // OrderDate - public DateTime? ShipDate { get; set; } // ShipDate - public int? CustomerId { get; set; } // CustomerId - } -} diff --git a/Tests/RCommon.Tests/RCommon.Tests.csproj b/Tests/RCommon.Tests/RCommon.Tests.csproj deleted file mode 100644 index 5b54b008..00000000 --- a/Tests/RCommon.Tests/RCommon.Tests.csproj +++ /dev/null @@ -1,38 +0,0 @@ - - - - net8.0; - - false - - - - - - - - - - - - - - - - - - - - - - - - Always - - - - - - - - diff --git a/Tests/RCommon.Tests/appsettings.json b/Tests/RCommon.Tests/appsettings.json deleted file mode 100644 index 9c6f7afa..00000000 --- a/Tests/RCommon.Tests/appsettings.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "ConnectionStrings": { - "TestDbContext": "Data Source=localhost;Initial Catalog=TestDatabase;Integrated Security=True;application name=EntityFramework;" - }, - "Logging": { - "LogLevel": { - "Default": "Debug", - "Microsoft": "Information", - "Microsoft.Hosting.Lifetime": "Information" - } - }, - "Serilog": { - "MinimumLevel": { - "Default": "Debug" - } - }, - "RCommonDataStoreTypes": { - "DataStoreTypes": { - "DataStoreType": { - "Name": "TestDbContext", - "TypeName": "RCommon.Persistence.EFCore.Tests.TestDbContext, RCommon.Persistence.EFCore.Tests, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" - } - } - } -} diff --git a/Tests/RCommon.Wolverine.Tests/GlobalUsings.cs b/Tests/RCommon.Wolverine.Tests/GlobalUsings.cs new file mode 100644 index 00000000..cefced49 --- /dev/null +++ b/Tests/RCommon.Wolverine.Tests/GlobalUsings.cs @@ -0,0 +1 @@ +global using NUnit.Framework; \ No newline at end of file diff --git a/Tests/RCommon.Wolverine.Tests/RCommon.Wolverine.Tests.csproj b/Tests/RCommon.Wolverine.Tests/RCommon.Wolverine.Tests.csproj new file mode 100644 index 00000000..c6d2043b --- /dev/null +++ b/Tests/RCommon.Wolverine.Tests/RCommon.Wolverine.Tests.csproj @@ -0,0 +1,32 @@ + + + + net8.0 + enable + enable + + false + true + + + + + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + + + +