se implemento el patron IoC y se creo documentacion en los metodos

This commit is contained in:
jrojas
2024-11-27 12:39:26 +01:00
parent 7c08e6e218
commit 28ce635da3
44 changed files with 186 additions and 145 deletions
@@ -28,7 +28,7 @@ public class AuditServiceFilterbyTextAndDateTests
var allRecords = await _service.AuditLogRepository.GetAllAuditRecordsAsync();
// Assert
Assert.That(allRecords.Count(), Is.EqualTo(5), "All records from the JSON file should be loaded.");
Assert.That(allRecords.Count(), Is.EqualTo(7), "All records from the JSON file should be loaded.");
}
[Test]
@@ -8,7 +8,7 @@
".NETCoreApp,Version=v8.0": {
"audit-test/1.0.0": {
"dependencies": {
"AuditLogs": "1.0.16",
"AuditLogs": "1.0.17",
"Microsoft.Extensions.Hosting": "8.0.0",
"Microsoft.NET.Test.Sdk": "17.8.0",
"Mongo2Go": "2.2.16",
@@ -18,7 +18,7 @@
"NUnit3TestAdapter": "4.5.0",
"coverlet.collector": "6.0.0",
"xunit": "2.9.2",
"audit-logs": "1.0.16.0"
"audit-logs": "1.0.18.0"
},
"runtime": {
"audit-test.dll": {}
@@ -944,7 +944,7 @@
}
}
},
"AuditLogs/1.0.16": {
"AuditLogs/1.0.17": {
"dependencies": {
"Microsoft.Extensions.Hosting": "8.0.0",
"MongoDB.Driver": "2.23.1",
@@ -953,16 +953,16 @@
},
"runtime": {
"audit-logs.dll": {
"assemblyVersion": "1.0.16",
"fileVersion": "1.0.16.0"
"assemblyVersion": "1.0.17",
"fileVersion": "1.0.18.0"
}
}
},
"audit-logs/1.0.16.0": {
"audit-logs/1.0.18.0": {
"runtime": {
"audit-logs.dll": {
"assemblyVersion": "1.0.16.0",
"fileVersion": "1.0.16.0"
"assemblyVersion": "1.0.18.0",
"fileVersion": "1.0.18.0"
}
}
}
@@ -1471,12 +1471,12 @@
"path": "zstdsharp.port/0.7.3",
"hashPath": "zstdsharp.port.0.7.3.nupkg.sha512"
},
"AuditLogs/1.0.16": {
"AuditLogs/1.0.17": {
"type": "project",
"serviceable": false,
"sha512": ""
},
"audit-logs/1.0.16.0": {
"audit-logs/1.0.18.0": {
"type": "reference",
"serviceable": false,
"sha512": ""
@@ -13,7 +13,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("audit-test")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+8c3be106f93e44ea3daffe2267723e4026a0569d")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+7c08e6e218b786bd1ac8663615a55b7a1bbd429a")]
[assembly: System.Reflection.AssemblyProductAttribute("audit-test")]
[assembly: System.Reflection.AssemblyTitleAttribute("audit-test")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
@@ -1 +1 @@
142b1c1378f32e83f6fc5414661e98a2b515d2f45db3470d3ed86426c2d17e64
beadb3471c102aa4f942699573b0c6b6cc2905637a4cf47b218f532af9de08f7
@@ -5,7 +5,7 @@
},
"projects": {
"/home/julian/Documentos/repos/audit/audit-logs/audit-logs/audit-logs.csproj": {
"version": "1.0.16",
"version": "1.0.17",
"restore": {
"projectUniqueName": "/home/julian/Documentos/repos/audit/audit-logs/audit-logs/audit-logs.csproj",
"projectName": "AuditLogs",
@@ -1448,7 +1448,7 @@
"lib/net7.0/ZstdSharp.dll": {}
}
},
"AuditLogs/1.0.16": {
"AuditLogs/1.0.17": {
"type": "project",
"framework": ".NETCoreApp,Version=v8.0",
"dependencies": {
@@ -3799,7 +3799,7 @@
"zstdsharp.port.nuspec"
]
},
"AuditLogs/1.0.16": {
"AuditLogs/1.0.17": {
"type": "project",
"path": "../audit-logs/audit-logs.csproj",
"msbuildProject": "../audit-logs/audit-logs.csproj"
@@ -3807,7 +3807,7 @@
},
"projectFileDependencyGroups": {
"net8.0": [
"AuditLogs >= 1.0.16",
"AuditLogs >= 1.0.17",
"Microsoft.Extensions.Hosting >= 8.0.0",
"Microsoft.NET.Test.Sdk >= 17.8.0",
"Mongo2Go >= 2.2.16",
@@ -1,6 +1,6 @@
{
"version": 2,
"dgSpecHash": "7Jhsnyq0q5Y=",
"dgSpecHash": "f3yoSH3jMzc=",
"success": true,
"projectFilePath": "/home/julian/Documentos/repos/audit/audit-logs/audit-test/audit-test.csproj",
"expectedPackageFiles": [
@@ -75,7 +75,7 @@
"/home/julian/.nuget/packages/xunit.extensibility.core/2.9.2/xunit.extensibility.core.2.9.2.nupkg.sha512",
"/home/julian/.nuget/packages/xunit.extensibility.execution/2.9.2/xunit.extensibility.execution.2.9.2.nupkg.sha512",
"/home/julian/.nuget/packages/zstdsharp.port/0.7.3/zstdsharp.port.0.7.3.nupkg.sha512",
"/home/julian/.nuget/packages/auditlogs/1.0.16/auditlogs.1.0.16.nupkg.sha512"
"/home/julian/.nuget/packages/auditlogs/1.0.17/auditlogs.1.0.17.nupkg.sha512"
],
"logs": []
}
@@ -1 +1 @@
17322799320379764
17326086729278728
@@ -1 +1 @@
17326086729278728
17326358893202983