diff --git a/EcoSmart/.vs/EcoSmart/CopilotIndices/17.14.1091.29919/CodeChunks.db b/EcoSmart/.vs/EcoSmart/CopilotIndices/17.14.1091.29919/CodeChunks.db index babd93dfda5a962b383c3f3fc2a670405f54d033..32a0b23436538535aa547857b5f5691365d631fe 100644 Binary files a/EcoSmart/.vs/EcoSmart/CopilotIndices/17.14.1091.29919/CodeChunks.db and b/EcoSmart/.vs/EcoSmart/CopilotIndices/17.14.1091.29919/CodeChunks.db differ diff --git a/EcoSmart/.vs/EcoSmart/CopilotIndices/17.14.1091.29919/SemanticSymbols.db b/EcoSmart/.vs/EcoSmart/CopilotIndices/17.14.1091.29919/SemanticSymbols.db index 53f5f5ed75709121cb391e52bc642a244cccf1eb..d392fef014a55771522e085a306d7026759dc1e2 100644 Binary files a/EcoSmart/.vs/EcoSmart/CopilotIndices/17.14.1091.29919/SemanticSymbols.db and b/EcoSmart/.vs/EcoSmart/CopilotIndices/17.14.1091.29919/SemanticSymbols.db differ diff --git a/EcoSmart/.vs/EcoSmart/DesignTimeBuild/.dtbcache.v2 b/EcoSmart/.vs/EcoSmart/DesignTimeBuild/.dtbcache.v2 index 10aef5e26981004a7b4ce3c3456c51ca117fc3d0..479787d9be4e844f3642b80315f2755f2e2dbb79 100644 Binary files a/EcoSmart/.vs/EcoSmart/DesignTimeBuild/.dtbcache.v2 and b/EcoSmart/.vs/EcoSmart/DesignTimeBuild/.dtbcache.v2 differ diff --git a/EcoSmart/.vs/EcoSmart/FileContentIndex/10ebfcb1-c7f6-4d4b-b446-40968f38dbba.vsidx b/EcoSmart/.vs/EcoSmart/FileContentIndex/10ebfcb1-c7f6-4d4b-b446-40968f38dbba.vsidx new file mode 100644 index 0000000000000000000000000000000000000000..a683e7256ef1e28aaa0f872bfe6f1ce5e72f9e21 Binary files /dev/null and b/EcoSmart/.vs/EcoSmart/FileContentIndex/10ebfcb1-c7f6-4d4b-b446-40968f38dbba.vsidx differ diff --git a/EcoSmart/.vs/EcoSmart/FileContentIndex/502fa47b-90c0-4a0e-9113-88c6e3cd41c6.vsidx b/EcoSmart/.vs/EcoSmart/FileContentIndex/502fa47b-90c0-4a0e-9113-88c6e3cd41c6.vsidx deleted file mode 100644 index 1c7e7354bfbf0e82e41b68c4686b777408a2cd72..0000000000000000000000000000000000000000 Binary files a/EcoSmart/.vs/EcoSmart/FileContentIndex/502fa47b-90c0-4a0e-9113-88c6e3cd41c6.vsidx and /dev/null differ diff --git a/EcoSmart/.vs/EcoSmart/FileContentIndex/508e726d-8111-4db6-aa63-83ef5f4fe246.vsidx b/EcoSmart/.vs/EcoSmart/FileContentIndex/508e726d-8111-4db6-aa63-83ef5f4fe246.vsidx new file mode 100644 index 0000000000000000000000000000000000000000..283f5fba660f8e999c6eac1f2daafd8647ad4f39 Binary files /dev/null and b/EcoSmart/.vs/EcoSmart/FileContentIndex/508e726d-8111-4db6-aa63-83ef5f4fe246.vsidx differ diff --git a/EcoSmart/.vs/EcoSmart/FileContentIndex/541e99bc-3f31-4878-93ce-a50191e98c30.vsidx b/EcoSmart/.vs/EcoSmart/FileContentIndex/541e99bc-3f31-4878-93ce-a50191e98c30.vsidx new file mode 100644 index 0000000000000000000000000000000000000000..d2e42b87c0e51749fdbc470a958c40f67c07a631 Binary files /dev/null and b/EcoSmart/.vs/EcoSmart/FileContentIndex/541e99bc-3f31-4878-93ce-a50191e98c30.vsidx differ diff --git a/EcoSmart/.vs/EcoSmart/FileContentIndex/5cfe6cfb-480b-41ea-9882-afc2dd9af1dd.vsidx b/EcoSmart/.vs/EcoSmart/FileContentIndex/5cfe6cfb-480b-41ea-9882-afc2dd9af1dd.vsidx deleted file mode 100644 index 85498bacdaf2013978e8b4c1b26e4cad9cd93382..0000000000000000000000000000000000000000 Binary files a/EcoSmart/.vs/EcoSmart/FileContentIndex/5cfe6cfb-480b-41ea-9882-afc2dd9af1dd.vsidx and /dev/null differ diff --git a/EcoSmart/.vs/EcoSmart/FileContentIndex/5e2067c1-b80f-4c07-a2ee-70d39b4788ce.vsidx b/EcoSmart/.vs/EcoSmart/FileContentIndex/5e2067c1-b80f-4c07-a2ee-70d39b4788ce.vsidx new file mode 100644 index 0000000000000000000000000000000000000000..3c36ff752889a13ac471b19da4f9fdddeab885bf Binary files /dev/null and b/EcoSmart/.vs/EcoSmart/FileContentIndex/5e2067c1-b80f-4c07-a2ee-70d39b4788ce.vsidx differ diff --git a/EcoSmart/.vs/EcoSmart/FileContentIndex/6dabcf9d-8abe-43d5-8dd0-d771d8358fac.vsidx b/EcoSmart/.vs/EcoSmart/FileContentIndex/6dabcf9d-8abe-43d5-8dd0-d771d8358fac.vsidx deleted file mode 100644 index 7b52158a86db718d2a4cc853977e05fd8fb4d224..0000000000000000000000000000000000000000 Binary files a/EcoSmart/.vs/EcoSmart/FileContentIndex/6dabcf9d-8abe-43d5-8dd0-d771d8358fac.vsidx and /dev/null differ diff --git a/EcoSmart/.vs/EcoSmart/FileContentIndex/abba7f94-8791-48de-86e5-650f0dda9164.vsidx b/EcoSmart/.vs/EcoSmart/FileContentIndex/abba7f94-8791-48de-86e5-650f0dda9164.vsidx new file mode 100644 index 0000000000000000000000000000000000000000..31f005879b5642d411c96380aef73e8998516741 Binary files /dev/null and b/EcoSmart/.vs/EcoSmart/FileContentIndex/abba7f94-8791-48de-86e5-650f0dda9164.vsidx differ diff --git a/EcoSmart/.vs/EcoSmart/FileContentIndex/cadb1783-ab6e-4eed-9212-fc455d7ace9d.vsidx b/EcoSmart/.vs/EcoSmart/FileContentIndex/cadb1783-ab6e-4eed-9212-fc455d7ace9d.vsidx deleted file mode 100644 index 1244455410d78b03484efde24edc17d32f7c295e..0000000000000000000000000000000000000000 Binary files a/EcoSmart/.vs/EcoSmart/FileContentIndex/cadb1783-ab6e-4eed-9212-fc455d7ace9d.vsidx and /dev/null differ diff --git a/EcoSmart/.vs/EcoSmart/FileContentIndex/e04ccee2-5d08-41a1-81d9-82b73e53e916.vsidx b/EcoSmart/.vs/EcoSmart/FileContentIndex/e04ccee2-5d08-41a1-81d9-82b73e53e916.vsidx deleted file mode 100644 index d5ff07058f01953b85299b3f04118f3d593bdd3f..0000000000000000000000000000000000000000 Binary files a/EcoSmart/.vs/EcoSmart/FileContentIndex/e04ccee2-5d08-41a1-81d9-82b73e53e916.vsidx and /dev/null differ diff --git a/EcoSmart/.vs/EcoSmart/v17/.futdcache.v2 b/EcoSmart/.vs/EcoSmart/v17/.futdcache.v2 index aed4e8c35ce1c5c50e0d7c327c8220ea13f25fed..fb092f3685a6b7f224cdd3a1b6bc0c4b8332b3d0 100644 Binary files a/EcoSmart/.vs/EcoSmart/v17/.futdcache.v2 and b/EcoSmart/.vs/EcoSmart/v17/.futdcache.v2 differ diff --git a/EcoSmart/.vs/EcoSmart/v17/.suo b/EcoSmart/.vs/EcoSmart/v17/.suo index 4d03ec89ce72c296732d73a59ad71c162540f6ca..27c95bb97c847afba8499678d720f032c4ae5ca7 100644 Binary files a/EcoSmart/.vs/EcoSmart/v17/.suo and b/EcoSmart/.vs/EcoSmart/v17/.suo differ diff --git a/EcoSmart/.vs/EcoSmart/v17/DocumentLayout.backup.json b/EcoSmart/.vs/EcoSmart/v17/DocumentLayout.backup.json index ee61b7078706b976079d2cb06597614932c266de..35d5962d7b8e480fffd6aae0966ef514cbc47e22 100644 --- a/EcoSmart/.vs/EcoSmart/v17/DocumentLayout.backup.json +++ b/EcoSmart/.vs/EcoSmart/v17/DocumentLayout.backup.json @@ -3,44 +3,8 @@ "WorkspaceRootPath": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\", "Documents": [ { - "AbsoluteMoniker": "D:0:0:{3149D470-5A32-47AE-B385-CC0C3E6655B2}|Infrastructure\\Infrastructure.csproj|c:\\users\\utente\\desktop\\ecosmart-chiamate-asincrone-e-linq\\ecosmart\\infrastructure\\repositories\\jsonsensorrepository.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", - "RelativeMoniker": "D:0:0:{3149D470-5A32-47AE-B385-CC0C3E6655B2}|Infrastructure\\Infrastructure.csproj|solutionrelative:infrastructure\\repositories\\jsonsensorrepository.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" - }, - { - "AbsoluteMoniker": "D:0:0:{041EB381-1525-4D1E-A3FD-AD39761BA14B}|Application\\Application.csproj|c:\\users\\utente\\desktop\\ecosmart-chiamate-asincrone-e-linq\\ecosmart\\application\\usecases\\sensorservice.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", - "RelativeMoniker": "D:0:0:{041EB381-1525-4D1E-A3FD-AD39761BA14B}|Application\\Application.csproj|solutionrelative:application\\usecases\\sensorservice.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" - }, - { - "AbsoluteMoniker": "D:0:0:{041EB381-1525-4D1E-A3FD-AD39761BA14B}|Application\\Application.csproj|c:\\users\\utente\\desktop\\ecosmart-chiamate-asincrone-e-linq\\ecosmart\\application\\interfaces\\isensorrepository.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", - "RelativeMoniker": "D:0:0:{041EB381-1525-4D1E-A3FD-AD39761BA14B}|Application\\Application.csproj|solutionrelative:application\\interfaces\\isensorrepository.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" - }, - { - "AbsoluteMoniker": "D:0:0:{3149D470-5A32-47AE-B385-CC0C3E6655B2}|Infrastructure\\Infrastructure.csproj|c:\\users\\utente\\desktop\\ecosmart-chiamate-asincrone-e-linq\\ecosmart\\infrastructure\\mapper\\sensordatamapperpersistence.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", - "RelativeMoniker": "D:0:0:{3149D470-5A32-47AE-B385-CC0C3E6655B2}|Infrastructure\\Infrastructure.csproj|solutionrelative:infrastructure\\mapper\\sensordatamapperpersistence.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" - }, - { - "AbsoluteMoniker": "D:0:0:{041EB381-1525-4D1E-A3FD-AD39761BA14B}|Application\\Application.csproj|c:\\users\\utente\\desktop\\ecosmart-chiamate-asincrone-e-linq\\ecosmart\\application\\mapper\\sensordatamapper.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", - "RelativeMoniker": "D:0:0:{041EB381-1525-4D1E-A3FD-AD39761BA14B}|Application\\Application.csproj|solutionrelative:application\\mapper\\sensordatamapper.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" - }, - { - "AbsoluteMoniker": "D:0:0:{3149D470-5A32-47AE-B385-CC0C3E6655B2}|Infrastructure\\Infrastructure.csproj|c:\\users\\utente\\desktop\\ecosmart-chiamate-asincrone-e-linq\\ecosmart\\infrastructure\\dto\\sensordatadtopersistence.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", - "RelativeMoniker": "D:0:0:{3149D470-5A32-47AE-B385-CC0C3E6655B2}|Infrastructure\\Infrastructure.csproj|solutionrelative:infrastructure\\dto\\sensordatadtopersistence.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" - }, - { - "AbsoluteMoniker": "D:0:0:{041EB381-1525-4D1E-A3FD-AD39761BA14B}|Application\\Application.csproj|c:\\users\\utente\\desktop\\ecosmart-chiamate-asincrone-e-linq\\ecosmart\\application\\dto\\sensordatadto.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", - "RelativeMoniker": "D:0:0:{041EB381-1525-4D1E-A3FD-AD39761BA14B}|Application\\Application.csproj|solutionrelative:application\\dto\\sensordatadto.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" - }, - { - "AbsoluteMoniker": "D:0:0:{497E49D3-16FB-4A65-8F7E-1A6E3DE06C9B}|EcoSmart\\Domain.csproj|c:\\users\\utente\\desktop\\ecosmart-chiamate-asincrone-e-linq\\ecosmart\\ecosmart\\sensordata.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", - "RelativeMoniker": "D:0:0:{497E49D3-16FB-4A65-8F7E-1A6E3DE06C9B}|EcoSmart\\Domain.csproj|solutionrelative:ecosmart\\sensordata.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" - }, - { - "AbsoluteMoniker": "D:0:0:{02211E38-5F37-4746-A1B0-E62477CE7A68}|TestApplication\\TestApplication.csproj|c:\\users\\utente\\desktop\\ecosmart-chiamate-asincrone-e-linq\\ecosmart\\testapplication\\testsensordatamapper.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", - "RelativeMoniker": "D:0:0:{02211E38-5F37-4746-A1B0-E62477CE7A68}|TestApplication\\TestApplication.csproj|solutionrelative:testapplication\\testsensordatamapper.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" - }, - { - "AbsoluteMoniker": "D:0:0:{1ADD3D08-E1D6-4911-8988-79CEB5053882}|TestDomain\\TestDomain.csproj|c:\\users\\utente\\desktop\\ecosmart-chiamate-asincrone-e-linq\\ecosmart\\testdomain\\testsensordata.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", - "RelativeMoniker": "D:0:0:{1ADD3D08-E1D6-4911-8988-79CEB5053882}|TestDomain\\TestDomain.csproj|solutionrelative:testdomain\\testsensordata.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + "AbsoluteMoniker": "D:0:0:{69274163-2690-445D-9F26-07EFB961ED85}|Presentation\\Presentation.csproj|c:\\users\\utente\\desktop\\ecosmart-chiamate-asincrone-e-linq\\ecosmart\\presentation\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{69274163-2690-445D-9F26-07EFB961ED85}|Presentation\\Presentation.csproj|solutionrelative:presentation\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" } ], "DocumentGroupContainers": [ @@ -55,130 +19,15 @@ { "$type": "Document", "DocumentIndex": 0, - "Title": "JsonSensorRepository.cs", - "DocumentMoniker": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\Infrastructure\\Repositories\\JsonSensorRepository.cs", - "RelativeDocumentMoniker": "Infrastructure\\Repositories\\JsonSensorRepository.cs", - "ToolTip": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\Infrastructure\\Repositories\\JsonSensorRepository.cs", - "RelativeToolTip": "Infrastructure\\Repositories\\JsonSensorRepository.cs", - "ViewState": "AgIAAAYAAAAAAAAAAAAAAAoAAAABAAAAAAAAAA==", - "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", - "WhenOpened": "2025-12-28T08:55:22.059Z", - "EditorCaption": "" - }, - { - "$type": "Document", - "DocumentIndex": 3, - "Title": "SensorDataMapperPersistence.cs", - "DocumentMoniker": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\Infrastructure\\Mapper\\SensorDataMapperPersistence.cs", - "RelativeDocumentMoniker": "Infrastructure\\Mapper\\SensorDataMapperPersistence.cs", - "ToolTip": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\Infrastructure\\Mapper\\SensorDataMapperPersistence.cs", - "RelativeToolTip": "Infrastructure\\Mapper\\SensorDataMapperPersistence.cs", - "ViewState": "AgIAAAAAAAAAAAAAAAAAABIAAAArAAAAAAAAAA==", - "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", - "WhenOpened": "2025-12-28T08:48:33.721Z", - "EditorCaption": "" - }, - { - "$type": "Document", - "DocumentIndex": 5, - "Title": "SensorDataDtoPersistence.cs", - "DocumentMoniker": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\Infrastructure\\Dto\\SensorDataDtoPersistence.cs", - "RelativeDocumentMoniker": "Infrastructure\\Dto\\SensorDataDtoPersistence.cs", - "ToolTip": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\Infrastructure\\Dto\\SensorDataDtoPersistence.cs", - "RelativeToolTip": "Infrastructure\\Dto\\SensorDataDtoPersistence.cs", - "ViewState": "AgIAAAAAAAAAAAAAAAAAAAgAAAAGAAAAAAAAAA==", - "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", - "WhenOpened": "2025-12-28T08:43:39.444Z" - }, - { - "$type": "Document", - "DocumentIndex": 1, - "Title": "SensorService.cs", - "DocumentMoniker": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\Application\\UseCases\\SensorService.cs", - "RelativeDocumentMoniker": "Application\\UseCases\\SensorService.cs", - "ToolTip": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\Application\\UseCases\\SensorService.cs", - "RelativeToolTip": "Application\\UseCases\\SensorService.cs", - "ViewState": "AgIAAAYAAAAAAAAAAAAAABUAAAAAAAAAAAAAAA==", - "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", - "WhenOpened": "2025-12-27T12:03:43.261Z", + "Title": "Program.cs", + "DocumentMoniker": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\Presentation\\Program.cs", + "RelativeDocumentMoniker": "Presentation\\Program.cs", + "ToolTip": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\Presentation\\Program.cs", + "RelativeToolTip": "Presentation\\Program.cs", + "ViewState": "AgIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2026-01-06T11:26:39.336Z", "EditorCaption": "" - }, - { - "$type": "Document", - "DocumentIndex": 2, - "Title": "ISensorRepository.cs", - "DocumentMoniker": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\Application\\Interfaces\\ISensorRepository.cs", - "RelativeDocumentMoniker": "Application\\Interfaces\\ISensorRepository.cs", - "ToolTip": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\Application\\Interfaces\\ISensorRepository.cs", - "RelativeToolTip": "Application\\Interfaces\\ISensorRepository.cs", - "ViewState": "AgIAAAAAAAAAAAAAAAAAAA0AAAAFAAAAAAAAAA==", - "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", - "WhenOpened": "2025-12-27T11:44:31.999Z", - "EditorCaption": "" - }, - { - "$type": "Bookmark", - "Name": "ST:0:0:{34e76e81-ee4a-11d0-ae2e-00a0c90fffc3}" - }, - { - "$type": "Document", - "DocumentIndex": 4, - "Title": "SensorDataMapper.cs", - "DocumentMoniker": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\Application\\Mapper\\SensorDataMapper.cs", - "RelativeDocumentMoniker": "Application\\Mapper\\SensorDataMapper.cs", - "ToolTip": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\Application\\Mapper\\SensorDataMapper.cs", - "RelativeToolTip": "Application\\Mapper\\SensorDataMapper.cs", - "ViewState": "AgIAAAMAAAAAAAAAAAAAAAoAAAABAAAAAAAAAA==", - "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", - "WhenOpened": "2025-12-27T11:23:55.896Z" - }, - { - "$type": "Document", - "DocumentIndex": 6, - "Title": "SensorDataDto.cs", - "DocumentMoniker": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\Application\\Dto\\SensorDataDto.cs", - "RelativeDocumentMoniker": "Application\\Dto\\SensorDataDto.cs", - "ToolTip": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\Application\\Dto\\SensorDataDto.cs", - "RelativeToolTip": "Application\\Dto\\SensorDataDto.cs", - "ViewState": "AgIAAAAAAAAAAAAAAAAAAAgAAAAGAAAAAAAAAA==", - "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", - "WhenOpened": "2025-12-27T11:15:41.335Z" - }, - { - "$type": "Document", - "DocumentIndex": 9, - "Title": "TestSensorData.cs", - "DocumentMoniker": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\TestDomain\\TestSensorData.cs", - "RelativeDocumentMoniker": "TestDomain\\TestSensorData.cs", - "ToolTip": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\TestDomain\\TestSensorData.cs", - "RelativeToolTip": "TestDomain\\TestSensorData.cs", - "ViewState": "AgIAAAAAAAAAAAAAAAAAADcAAABHAAAAAAAAAA==", - "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", - "WhenOpened": "2025-12-27T10:51:25.88Z" - }, - { - "$type": "Document", - "DocumentIndex": 7, - "Title": "SensorData.cs", - "DocumentMoniker": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\EcoSmart\\SensorData.cs", - "RelativeDocumentMoniker": "EcoSmart\\SensorData.cs", - "ToolTip": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\EcoSmart\\SensorData.cs", - "RelativeToolTip": "EcoSmart\\SensorData.cs", - "ViewState": "AgIAAAAAAAAAAAAAAAAAAAUAAAAeAAAAAAAAAA==", - "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", - "WhenOpened": "2025-12-27T10:28:30.413Z" - }, - { - "$type": "Document", - "DocumentIndex": 8, - "Title": "TestSensorDataMapper.cs", - "DocumentMoniker": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\TestApplication\\TestSensorDataMapper.cs", - "RelativeDocumentMoniker": "TestApplication\\TestSensorDataMapper.cs", - "ToolTip": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\TestApplication\\TestSensorDataMapper.cs", - "RelativeToolTip": "TestApplication\\TestSensorDataMapper.cs", - "ViewState": "AgIAAAAAAAAAAAAAAAAAAB4AAAAAAAAAAAAAAA==", - "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", - "WhenOpened": "2025-12-27T11:34:31.727Z" } ] } diff --git a/EcoSmart/.vs/EcoSmart/v17/DocumentLayout.json b/EcoSmart/.vs/EcoSmart/v17/DocumentLayout.json index cf93778fcc6b644563b5efd8f83a1910e5e5f0e0..35d5962d7b8e480fffd6aae0966ef514cbc47e22 100644 --- a/EcoSmart/.vs/EcoSmart/v17/DocumentLayout.json +++ b/EcoSmart/.vs/EcoSmart/v17/DocumentLayout.json @@ -3,44 +3,8 @@ "WorkspaceRootPath": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\", "Documents": [ { - "AbsoluteMoniker": "D:0:0:{3149D470-5A32-47AE-B385-CC0C3E6655B2}|Infrastructure\\Infrastructure.csproj|c:\\users\\utente\\desktop\\ecosmart-chiamate-asincrone-e-linq\\ecosmart\\infrastructure\\repositories\\jsonsensorrepository.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", - "RelativeMoniker": "D:0:0:{3149D470-5A32-47AE-B385-CC0C3E6655B2}|Infrastructure\\Infrastructure.csproj|solutionrelative:infrastructure\\repositories\\jsonsensorrepository.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" - }, - { - "AbsoluteMoniker": "D:0:0:{041EB381-1525-4D1E-A3FD-AD39761BA14B}|Application\\Application.csproj|c:\\users\\utente\\desktop\\ecosmart-chiamate-asincrone-e-linq\\ecosmart\\application\\usecases\\sensorservice.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", - "RelativeMoniker": "D:0:0:{041EB381-1525-4D1E-A3FD-AD39761BA14B}|Application\\Application.csproj|solutionrelative:application\\usecases\\sensorservice.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" - }, - { - "AbsoluteMoniker": "D:0:0:{041EB381-1525-4D1E-A3FD-AD39761BA14B}|Application\\Application.csproj|c:\\users\\utente\\desktop\\ecosmart-chiamate-asincrone-e-linq\\ecosmart\\application\\interfaces\\isensorrepository.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", - "RelativeMoniker": "D:0:0:{041EB381-1525-4D1E-A3FD-AD39761BA14B}|Application\\Application.csproj|solutionrelative:application\\interfaces\\isensorrepository.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" - }, - { - "AbsoluteMoniker": "D:0:0:{3149D470-5A32-47AE-B385-CC0C3E6655B2}|Infrastructure\\Infrastructure.csproj|c:\\users\\utente\\desktop\\ecosmart-chiamate-asincrone-e-linq\\ecosmart\\infrastructure\\mapper\\sensordatamapperpersistence.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", - "RelativeMoniker": "D:0:0:{3149D470-5A32-47AE-B385-CC0C3E6655B2}|Infrastructure\\Infrastructure.csproj|solutionrelative:infrastructure\\mapper\\sensordatamapperpersistence.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" - }, - { - "AbsoluteMoniker": "D:0:0:{041EB381-1525-4D1E-A3FD-AD39761BA14B}|Application\\Application.csproj|c:\\users\\utente\\desktop\\ecosmart-chiamate-asincrone-e-linq\\ecosmart\\application\\mapper\\sensordatamapper.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", - "RelativeMoniker": "D:0:0:{041EB381-1525-4D1E-A3FD-AD39761BA14B}|Application\\Application.csproj|solutionrelative:application\\mapper\\sensordatamapper.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" - }, - { - "AbsoluteMoniker": "D:0:0:{3149D470-5A32-47AE-B385-CC0C3E6655B2}|Infrastructure\\Infrastructure.csproj|c:\\users\\utente\\desktop\\ecosmart-chiamate-asincrone-e-linq\\ecosmart\\infrastructure\\dto\\sensordatadtopersistence.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", - "RelativeMoniker": "D:0:0:{3149D470-5A32-47AE-B385-CC0C3E6655B2}|Infrastructure\\Infrastructure.csproj|solutionrelative:infrastructure\\dto\\sensordatadtopersistence.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" - }, - { - "AbsoluteMoniker": "D:0:0:{041EB381-1525-4D1E-A3FD-AD39761BA14B}|Application\\Application.csproj|c:\\users\\utente\\desktop\\ecosmart-chiamate-asincrone-e-linq\\ecosmart\\application\\dto\\sensordatadto.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", - "RelativeMoniker": "D:0:0:{041EB381-1525-4D1E-A3FD-AD39761BA14B}|Application\\Application.csproj|solutionrelative:application\\dto\\sensordatadto.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" - }, - { - "AbsoluteMoniker": "D:0:0:{497E49D3-16FB-4A65-8F7E-1A6E3DE06C9B}|EcoSmart\\Domain.csproj|c:\\users\\utente\\desktop\\ecosmart-chiamate-asincrone-e-linq\\ecosmart\\ecosmart\\sensordata.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", - "RelativeMoniker": "D:0:0:{497E49D3-16FB-4A65-8F7E-1A6E3DE06C9B}|EcoSmart\\Domain.csproj|solutionrelative:ecosmart\\sensordata.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" - }, - { - "AbsoluteMoniker": "D:0:0:{02211E38-5F37-4746-A1B0-E62477CE7A68}|TestApplication\\TestApplication.csproj|c:\\users\\utente\\desktop\\ecosmart-chiamate-asincrone-e-linq\\ecosmart\\testapplication\\testsensordatamapper.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", - "RelativeMoniker": "D:0:0:{02211E38-5F37-4746-A1B0-E62477CE7A68}|TestApplication\\TestApplication.csproj|solutionrelative:testapplication\\testsensordatamapper.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" - }, - { - "AbsoluteMoniker": "D:0:0:{1ADD3D08-E1D6-4911-8988-79CEB5053882}|TestDomain\\TestDomain.csproj|c:\\users\\utente\\desktop\\ecosmart-chiamate-asincrone-e-linq\\ecosmart\\testdomain\\testsensordata.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", - "RelativeMoniker": "D:0:0:{1ADD3D08-E1D6-4911-8988-79CEB5053882}|TestDomain\\TestDomain.csproj|solutionrelative:testdomain\\testsensordata.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + "AbsoluteMoniker": "D:0:0:{69274163-2690-445D-9F26-07EFB961ED85}|Presentation\\Presentation.csproj|c:\\users\\utente\\desktop\\ecosmart-chiamate-asincrone-e-linq\\ecosmart\\presentation\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{69274163-2690-445D-9F26-07EFB961ED85}|Presentation\\Presentation.csproj|solutionrelative:presentation\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" } ], "DocumentGroupContainers": [ @@ -50,132 +14,20 @@ "DocumentGroups": [ { "DockedWidth": 200, - "SelectedChildIndex": 1, + "SelectedChildIndex": 0, "Children": [ - { - "$type": "Bookmark", - "Name": "ST:0:0:{34e76e81-ee4a-11d0-ae2e-00a0c90fffc3}" - }, { "$type": "Document", "DocumentIndex": 0, - "Title": "JsonSensorRepository.cs", - "DocumentMoniker": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\Infrastructure\\Repositories\\JsonSensorRepository.cs", - "RelativeDocumentMoniker": "Infrastructure\\Repositories\\JsonSensorRepository.cs", - "ToolTip": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\Infrastructure\\Repositories\\JsonSensorRepository.cs", - "RelativeToolTip": "Infrastructure\\Repositories\\JsonSensorRepository.cs", - "ViewState": "AgIAAAYAAAAAAAAAAAAAAAoAAAABAAAAAAAAAA==", - "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", - "WhenOpened": "2025-12-28T08:55:22.059Z", + "Title": "Program.cs", + "DocumentMoniker": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\Presentation\\Program.cs", + "RelativeDocumentMoniker": "Presentation\\Program.cs", + "ToolTip": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\Presentation\\Program.cs", + "RelativeToolTip": "Presentation\\Program.cs", + "ViewState": "AgIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2026-01-06T11:26:39.336Z", "EditorCaption": "" - }, - { - "$type": "Document", - "DocumentIndex": 3, - "Title": "SensorDataMapperPersistence.cs", - "DocumentMoniker": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\Infrastructure\\Mapper\\SensorDataMapperPersistence.cs", - "RelativeDocumentMoniker": "Infrastructure\\Mapper\\SensorDataMapperPersistence.cs", - "ToolTip": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\Infrastructure\\Mapper\\SensorDataMapperPersistence.cs", - "RelativeToolTip": "Infrastructure\\Mapper\\SensorDataMapperPersistence.cs", - "ViewState": "AgIAAAAAAAAAAAAAAAAAABIAAAArAAAAAAAAAA==", - "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", - "WhenOpened": "2025-12-28T08:48:33.721Z" - }, - { - "$type": "Document", - "DocumentIndex": 5, - "Title": "SensorDataDtoPersistence.cs", - "DocumentMoniker": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\Infrastructure\\Dto\\SensorDataDtoPersistence.cs", - "RelativeDocumentMoniker": "Infrastructure\\Dto\\SensorDataDtoPersistence.cs", - "ToolTip": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\Infrastructure\\Dto\\SensorDataDtoPersistence.cs", - "RelativeToolTip": "Infrastructure\\Dto\\SensorDataDtoPersistence.cs", - "ViewState": "AgIAAAAAAAAAAAAAAAAAAAgAAAAGAAAAAAAAAA==", - "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", - "WhenOpened": "2025-12-28T08:43:39.444Z" - }, - { - "$type": "Document", - "DocumentIndex": 1, - "Title": "SensorService.cs", - "DocumentMoniker": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\Application\\UseCases\\SensorService.cs", - "RelativeDocumentMoniker": "Application\\UseCases\\SensorService.cs", - "ToolTip": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\Application\\UseCases\\SensorService.cs", - "RelativeToolTip": "Application\\UseCases\\SensorService.cs", - "ViewState": "AgIAAAYAAAAAAAAAAAAAABUAAAAAAAAAAAAAAA==", - "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", - "WhenOpened": "2025-12-27T12:03:43.261Z" - }, - { - "$type": "Document", - "DocumentIndex": 2, - "Title": "ISensorRepository.cs", - "DocumentMoniker": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\Application\\Interfaces\\ISensorRepository.cs", - "RelativeDocumentMoniker": "Application\\Interfaces\\ISensorRepository.cs", - "ToolTip": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\Application\\Interfaces\\ISensorRepository.cs", - "RelativeToolTip": "Application\\Interfaces\\ISensorRepository.cs", - "ViewState": "AgIAAAAAAAAAAAAAAAAAAA0AAAAFAAAAAAAAAA==", - "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", - "WhenOpened": "2025-12-27T11:44:31.999Z" - }, - { - "$type": "Document", - "DocumentIndex": 4, - "Title": "SensorDataMapper.cs", - "DocumentMoniker": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\Application\\Mapper\\SensorDataMapper.cs", - "RelativeDocumentMoniker": "Application\\Mapper\\SensorDataMapper.cs", - "ToolTip": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\Application\\Mapper\\SensorDataMapper.cs", - "RelativeToolTip": "Application\\Mapper\\SensorDataMapper.cs", - "ViewState": "AgIAAAMAAAAAAAAAAAAAAAoAAAABAAAAAAAAAA==", - "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", - "WhenOpened": "2025-12-27T11:23:55.896Z" - }, - { - "$type": "Document", - "DocumentIndex": 6, - "Title": "SensorDataDto.cs", - "DocumentMoniker": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\Application\\Dto\\SensorDataDto.cs", - "RelativeDocumentMoniker": "Application\\Dto\\SensorDataDto.cs", - "ToolTip": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\Application\\Dto\\SensorDataDto.cs", - "RelativeToolTip": "Application\\Dto\\SensorDataDto.cs", - "ViewState": "AgIAAAAAAAAAAAAAAAAAAAgAAAAGAAAAAAAAAA==", - "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", - "WhenOpened": "2025-12-27T11:15:41.335Z" - }, - { - "$type": "Document", - "DocumentIndex": 9, - "Title": "TestSensorData.cs", - "DocumentMoniker": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\TestDomain\\TestSensorData.cs", - "RelativeDocumentMoniker": "TestDomain\\TestSensorData.cs", - "ToolTip": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\TestDomain\\TestSensorData.cs", - "RelativeToolTip": "TestDomain\\TestSensorData.cs", - "ViewState": "AgIAAAAAAAAAAAAAAAAAADcAAABHAAAAAAAAAA==", - "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", - "WhenOpened": "2025-12-27T10:51:25.88Z" - }, - { - "$type": "Document", - "DocumentIndex": 7, - "Title": "SensorData.cs", - "DocumentMoniker": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\EcoSmart\\SensorData.cs", - "RelativeDocumentMoniker": "EcoSmart\\SensorData.cs", - "ToolTip": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\EcoSmart\\SensorData.cs", - "RelativeToolTip": "EcoSmart\\SensorData.cs", - "ViewState": "AgIAAAAAAAAAAAAAAAAAAAUAAAAeAAAAAAAAAA==", - "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", - "WhenOpened": "2025-12-27T10:28:30.413Z" - }, - { - "$type": "Document", - "DocumentIndex": 8, - "Title": "TestSensorDataMapper.cs", - "DocumentMoniker": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\TestApplication\\TestSensorDataMapper.cs", - "RelativeDocumentMoniker": "TestApplication\\TestSensorDataMapper.cs", - "ToolTip": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\TestApplication\\TestSensorDataMapper.cs", - "RelativeToolTip": "TestApplication\\TestSensorDataMapper.cs", - "ViewState": "AgIAAAAAAAAAAAAAAAAAAB4AAAAAAAAAAAAAAA==", - "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", - "WhenOpened": "2025-12-27T11:34:31.727Z" } ] } diff --git a/EcoSmart/.vs/EcoSmart/v17/TestStore/0/000.testlog b/EcoSmart/.vs/EcoSmart/v17/TestStore/0/000.testlog index 7e022df7d87c736d5523c3891c444b708e2a7a92..09eb5d8da7588ade447247b57832eadfaca49100 100644 Binary files a/EcoSmart/.vs/EcoSmart/v17/TestStore/0/000.testlog and b/EcoSmart/.vs/EcoSmart/v17/TestStore/0/000.testlog differ diff --git a/EcoSmart/.vs/ProjectEvaluation/ecosmart.metadata.v9.bin b/EcoSmart/.vs/ProjectEvaluation/ecosmart.metadata.v9.bin index 921cdb3def49c9e2e8141925e445846caba09481..51e74e9f0c60704b3f2d80015c2da405b052079c 100644 Binary files a/EcoSmart/.vs/ProjectEvaluation/ecosmart.metadata.v9.bin and b/EcoSmart/.vs/ProjectEvaluation/ecosmart.metadata.v9.bin differ diff --git a/EcoSmart/.vs/ProjectEvaluation/ecosmart.projects.v9.bin b/EcoSmart/.vs/ProjectEvaluation/ecosmart.projects.v9.bin index 1ebaa47b455e2930b359b59a7fd7daa70582d743..71c16fba8bab19ae84cfc911a9e3bf6ea8ba1904 100644 Binary files a/EcoSmart/.vs/ProjectEvaluation/ecosmart.projects.v9.bin and b/EcoSmart/.vs/ProjectEvaluation/ecosmart.projects.v9.bin differ diff --git a/EcoSmart/.vs/ProjectEvaluation/ecosmart.strings.v9.bin b/EcoSmart/.vs/ProjectEvaluation/ecosmart.strings.v9.bin index 815ede8deaae0854a13f5a0a9a142e0acd11beef..512afa31f40e5ca9ac5ed80b909727772990bd69 100644 Binary files a/EcoSmart/.vs/ProjectEvaluation/ecosmart.strings.v9.bin and b/EcoSmart/.vs/ProjectEvaluation/ecosmart.strings.v9.bin differ diff --git a/EcoSmart/Application/Interfaces/ISensorRepository.cs b/EcoSmart/Application/Interfaces/ISensorRepository.cs index f9f7291cddcd9df332aa7c0d7ff35a0300945c79..dbea3bacb645bc2f903dc608023035569df06dde 100644 --- a/EcoSmart/Application/Interfaces/ISensorRepository.cs +++ b/EcoSmart/Application/Interfaces/ISensorRepository.cs @@ -1,14 +1,16 @@ -using EcoSmart; -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; +using Domain; namespace Application.Interfaces { public interface ISensorRepository { + // Task: indica che il metodo è asincrono e restituisce un risultato (List), chi lo chiama + // dovrà usare await (guarda in interfaces LoadDataAsync e application GetAllAsync) Task> LoadDataAsync(string filePath); // restituisce una lista di SensorData caricati dal file specificato } diff --git a/EcoSmart/Application/Mapper/SensorDataMapper.cs b/EcoSmart/Application/Mapper/SensorDataMapper.cs index a17baff58a1133c476517687f60dfe32ecbe59ef..8976bbeec95d67e7c95eda43ed08e81e77402d6a 100644 --- a/EcoSmart/Application/Mapper/SensorDataMapper.cs +++ b/EcoSmart/Application/Mapper/SensorDataMapper.cs @@ -5,7 +5,6 @@ using System.Text; using System.Threading.Tasks; using Application.Dto; using Domain; -using EcoSmart; namespace Application.Mapper { @@ -22,8 +21,8 @@ namespace Application.Mapper } public static SensorData ToDomain(this SensorDataDto sensorDataDto) { - // Validate and parse the Type - if (!Enum.TryParse(sensorDataDto.Type, out var type)) + // Parse string -> enum Type + if (!Enum.TryParse(sensorDataDto.Type, ignoreCase: true, out var type)) { throw new ArgumentException($"Invalid sensor type: {sensorDataDto.Type}"); } diff --git a/EcoSmart/Application/UseCases/SensorService.cs b/EcoSmart/Application/UseCases/SensorService.cs index 49bb417846cde30297d74d255a07cdad6c0a677d..d80b7da7cbd1c22a1f828c5e402e93a56119827f 100644 --- a/EcoSmart/Application/UseCases/SensorService.cs +++ b/EcoSmart/Application/UseCases/SensorService.cs @@ -1,10 +1,10 @@ using Application.Interfaces; -using EcoSmart; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; +using Domain; namespace Application.UseCases { @@ -15,8 +15,10 @@ namespace Application.UseCases { _sensorRepository = sensorRepository; } + // Carica tutti i dati dei sensori dal file public async Task> GetAllAsync(string filePath) { + // richiama il metodo LoadDataAsync del repository per ottenere i dati return await _sensorRepository.LoadDataAsync(filePath); } diff --git a/EcoSmart/Application/bin/Debug/net8.0/Application.dll b/EcoSmart/Application/bin/Debug/net8.0/Application.dll index d559c45e037062ca9cdff8d5f2102c1a06409d7c..3260fcb35169baa9c3ae8bc1a06c9d28a3d41909 100644 Binary files a/EcoSmart/Application/bin/Debug/net8.0/Application.dll and b/EcoSmart/Application/bin/Debug/net8.0/Application.dll differ diff --git a/EcoSmart/Application/bin/Debug/net8.0/Application.pdb b/EcoSmart/Application/bin/Debug/net8.0/Application.pdb index 45e634bc75e545f27c03267aea382208fc6b9aca..a7461debe9eb9a9a45354eaf19a31aec94c167b1 100644 Binary files a/EcoSmart/Application/bin/Debug/net8.0/Application.pdb and b/EcoSmart/Application/bin/Debug/net8.0/Application.pdb differ diff --git a/EcoSmart/Application/bin/Debug/net8.0/Domain.dll b/EcoSmart/Application/bin/Debug/net8.0/Domain.dll index de005eb7858133548a20fafc00368c0a672bdac7..a5f10ac1560f2f98543f91798ebdd17b7c44e65f 100644 Binary files a/EcoSmart/Application/bin/Debug/net8.0/Domain.dll and b/EcoSmart/Application/bin/Debug/net8.0/Domain.dll differ diff --git a/EcoSmart/Application/bin/Debug/net8.0/Domain.pdb b/EcoSmart/Application/bin/Debug/net8.0/Domain.pdb index ada7e57ef88e15a5712d5b2806b8e697b14bdec2..75fd25c6fdd009da6e0238694b3732c5140021d0 100644 Binary files a/EcoSmart/Application/bin/Debug/net8.0/Domain.pdb and b/EcoSmart/Application/bin/Debug/net8.0/Domain.pdb differ diff --git a/EcoSmart/Application/obj/Debug/net8.0/Application.AssemblyInfo.cs b/EcoSmart/Application/obj/Debug/net8.0/Application.AssemblyInfo.cs index 82ba618455628ef7a4a34b17d46e4891e2905080..db46bce8a48170e2011aa7636e5bc76e0f9c8f25 100644 --- a/EcoSmart/Application/obj/Debug/net8.0/Application.AssemblyInfo.cs +++ b/EcoSmart/Application/obj/Debug/net8.0/Application.AssemblyInfo.cs @@ -14,7 +14,7 @@ using System.Reflection; [assembly: System.Reflection.AssemblyCompanyAttribute("Application")] [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] -[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+60b972e5e6088abe3f62c790d2a3c64223e4aa1d")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+0194f9b45b9a1cc3a86675d5f2424e35226fe5f9")] [assembly: System.Reflection.AssemblyProductAttribute("Application")] [assembly: System.Reflection.AssemblyTitleAttribute("Application")] [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] diff --git a/EcoSmart/Application/obj/Debug/net8.0/Application.AssemblyInfoInputs.cache b/EcoSmart/Application/obj/Debug/net8.0/Application.AssemblyInfoInputs.cache index 4be62bc61d0993412d5261de710d0e464b6d0df4..ccb5ea87ec12f0c1de554a4b4403ef8be81a105d 100644 --- a/EcoSmart/Application/obj/Debug/net8.0/Application.AssemblyInfoInputs.cache +++ b/EcoSmart/Application/obj/Debug/net8.0/Application.AssemblyInfoInputs.cache @@ -1 +1 @@ -46d36461822ca23a022e17f3df2e44a7c3ae93b34ffaf23b194af7b55ec61509 +d7902136e826dfdfbfa561d132cbe9cbdd5786c1ba34a7da342102684ab6bed9 diff --git a/EcoSmart/Application/obj/Debug/net8.0/Application.csproj.AssemblyReference.cache b/EcoSmart/Application/obj/Debug/net8.0/Application.csproj.AssemblyReference.cache index c9267f1ff64a91a6feff6a37d1fcb76ae42943ed..98df2a33c0937aac09757ee24b5a1bb819b9df44 100644 Binary files a/EcoSmart/Application/obj/Debug/net8.0/Application.csproj.AssemblyReference.cache and b/EcoSmart/Application/obj/Debug/net8.0/Application.csproj.AssemblyReference.cache differ diff --git a/EcoSmart/Application/obj/Debug/net8.0/Application.csproj.CoreCompileInputs.cache b/EcoSmart/Application/obj/Debug/net8.0/Application.csproj.CoreCompileInputs.cache index d02323a880210e9e559c8c60ff4b969f83b530e5..a1432f722a81d08cfa74685f3b1b9c9a74f3b15d 100644 --- a/EcoSmart/Application/obj/Debug/net8.0/Application.csproj.CoreCompileInputs.cache +++ b/EcoSmart/Application/obj/Debug/net8.0/Application.csproj.CoreCompileInputs.cache @@ -1 +1 @@ -82d4330325c3b4995d9d23a4da8963bab1aedba1ce4b890c255b5ef7a03c6335 +8b0abeca4067a5389e3e69c862e01271093e1aa50c55872a0df61e130241a89b diff --git a/EcoSmart/Application/obj/Debug/net8.0/Application.dll b/EcoSmart/Application/obj/Debug/net8.0/Application.dll index d559c45e037062ca9cdff8d5f2102c1a06409d7c..3260fcb35169baa9c3ae8bc1a06c9d28a3d41909 100644 Binary files a/EcoSmart/Application/obj/Debug/net8.0/Application.dll and b/EcoSmart/Application/obj/Debug/net8.0/Application.dll differ diff --git a/EcoSmart/Application/obj/Debug/net8.0/Application.pdb b/EcoSmart/Application/obj/Debug/net8.0/Application.pdb index 45e634bc75e545f27c03267aea382208fc6b9aca..a7461debe9eb9a9a45354eaf19a31aec94c167b1 100644 Binary files a/EcoSmart/Application/obj/Debug/net8.0/Application.pdb and b/EcoSmart/Application/obj/Debug/net8.0/Application.pdb differ diff --git a/EcoSmart/Application/obj/Debug/net8.0/ref/Application.dll b/EcoSmart/Application/obj/Debug/net8.0/ref/Application.dll index 91ef514c4e76d66545a93cffb2e09775012ba644..fb99258acb4352a7eba4941ff528fad366a95d72 100644 Binary files a/EcoSmart/Application/obj/Debug/net8.0/ref/Application.dll and b/EcoSmart/Application/obj/Debug/net8.0/ref/Application.dll differ diff --git a/EcoSmart/Application/obj/Debug/net8.0/refint/Application.dll b/EcoSmart/Application/obj/Debug/net8.0/refint/Application.dll index 91ef514c4e76d66545a93cffb2e09775012ba644..fb99258acb4352a7eba4941ff528fad366a95d72 100644 Binary files a/EcoSmart/Application/obj/Debug/net8.0/refint/Application.dll and b/EcoSmart/Application/obj/Debug/net8.0/refint/Application.dll differ diff --git a/EcoSmart/EcoSmart.sln b/EcoSmart/EcoSmart.sln index c032f0ae92ecd6f9f884a33cad9a7c60d937d779..4be11e8b2de1cf1693019abbafc42fe19d955c90 100644 --- a/EcoSmart/EcoSmart.sln +++ b/EcoSmart/EcoSmart.sln @@ -17,6 +17,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestApplication", "TestAppl EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Infrastructure", "Infrastructure\Infrastructure.csproj", "{3149D470-5A32-47AE-B385-CC0C3E6655B2}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Presentation", "Presentation\Presentation.csproj", "{69274163-2690-445D-9F26-07EFB961ED85}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -43,6 +45,10 @@ Global {3149D470-5A32-47AE-B385-CC0C3E6655B2}.Debug|Any CPU.Build.0 = Debug|Any CPU {3149D470-5A32-47AE-B385-CC0C3E6655B2}.Release|Any CPU.ActiveCfg = Release|Any CPU {3149D470-5A32-47AE-B385-CC0C3E6655B2}.Release|Any CPU.Build.0 = Release|Any CPU + {69274163-2690-445D-9F26-07EFB961ED85}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {69274163-2690-445D-9F26-07EFB961ED85}.Debug|Any CPU.Build.0 = Debug|Any CPU + {69274163-2690-445D-9F26-07EFB961ED85}.Release|Any CPU.ActiveCfg = Release|Any CPU + {69274163-2690-445D-9F26-07EFB961ED85}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -53,6 +59,7 @@ Global {041EB381-1525-4D1E-A3FD-AD39761BA14B} = {6C83A596-D32D-B35F-00DD-F0C99B673980} {02211E38-5F37-4746-A1B0-E62477CE7A68} = {A3B7D871-64FB-41B1-961C-20B2788F52D4} {3149D470-5A32-47AE-B385-CC0C3E6655B2} = {6C83A596-D32D-B35F-00DD-F0C99B673980} + {69274163-2690-445D-9F26-07EFB961ED85} = {6C83A596-D32D-B35F-00DD-F0C99B673980} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {64C5ABD5-2B8D-4BA6-81FE-10004DD8B795} diff --git a/EcoSmart/EcoSmart/SensorData.cs b/EcoSmart/EcoSmart/SensorData.cs index 3ccfafd6c44d301e0c9add93d36a728c13849820..e8f53c85eb65823734ea27b91ee669087b0caa81 100644 --- a/EcoSmart/EcoSmart/SensorData.cs +++ b/EcoSmart/EcoSmart/SensorData.cs @@ -1,4 +1,4 @@ -namespace EcoSmart +namespace Domain { public class SensorData { @@ -12,8 +12,8 @@ _sensorId = value; } } - private Domain.Type _type; - public Domain.Type Type + private Type _type; + public Type Type { get { return _type; } set { _type = value; } @@ -22,11 +22,7 @@ public double Value { get { return _value; } - set - { - if (value < -100 || value > 100) throw new ArgumentOutOfRangeException("Value must be between -100 and 100."); - _value = value; - } + set { _value = value; } } private DateTime _timestamp; public DateTime Timestamp @@ -38,7 +34,7 @@ _timestamp = value; } } - public SensorData(string sensorId, Domain.Type type, double value, DateTime timestamp) + public SensorData(string sensorId, Type type, double value, DateTime timestamp) { SensorId = sensorId; Type = type; diff --git a/EcoSmart/EcoSmart/bin/Debug/net8.0/Domain.dll b/EcoSmart/EcoSmart/bin/Debug/net8.0/Domain.dll index de005eb7858133548a20fafc00368c0a672bdac7..a5f10ac1560f2f98543f91798ebdd17b7c44e65f 100644 Binary files a/EcoSmart/EcoSmart/bin/Debug/net8.0/Domain.dll and b/EcoSmart/EcoSmart/bin/Debug/net8.0/Domain.dll differ diff --git a/EcoSmart/EcoSmart/bin/Debug/net8.0/Domain.pdb b/EcoSmart/EcoSmart/bin/Debug/net8.0/Domain.pdb index ada7e57ef88e15a5712d5b2806b8e697b14bdec2..75fd25c6fdd009da6e0238694b3732c5140021d0 100644 Binary files a/EcoSmart/EcoSmart/bin/Debug/net8.0/Domain.pdb and b/EcoSmart/EcoSmart/bin/Debug/net8.0/Domain.pdb differ diff --git a/EcoSmart/EcoSmart/bin/Debug/net8.0/sensors.json.txt b/EcoSmart/EcoSmart/bin/Debug/net8.0/sensors.json.txt new file mode 100644 index 0000000000000000000000000000000000000000..a2e749b71493a3669688c340f80bf4a9d30fd4d2 --- /dev/null +++ b/EcoSmart/EcoSmart/bin/Debug/net8.0/sensors.json.txt @@ -0,0 +1,11 @@ +[ +{ "SensorId": "SN-001", "Type": "Temperature", "Value": 22.5, "Timestamp": "2023-10-27T10:00:00" }, +{ "SensorId": "SN-002", "Type": "CO2", "Value": 1200.0, "Timestamp": "2023-10-27T10:05:00" }, +{ "SensorId": "SN-001", "Type": "Humidity", "Value": 45.0, "Timestamp": "2023-10-27T10:10:00" }, +{ "SensorId": "SN-001", "Type": "Temperature", "Value": 22.5, "Timestamp": "2023-10-27T10:00:00" }, +{ "SensorId": "SN-002", "Type": "CO2", "Value": 1200.0, "Timestamp": "2023-10-27T10:05:00" }, +{ "SensorId": "SN-001", "Type": "Humidity", "Value": 45.0, "Timestamp": "2023-10-27T10:10:00" }, +{ "SensorId": "SN-001", "Type": "Temperature", "Value": 22.5, "Timestamp": "2023-10-27T10:00:00" }, +{ "SensorId": "SN-002", "Type": "CO2", "Value": 1200.0, "Timestamp": "2023-10-27T10:05:00" }, +{ "SensorId": "SN-001", "Type": "Humidity", "Value": 45.0, "Timestamp": "2023-10-27T10:10:00" } +] \ No newline at end of file diff --git a/EcoSmart/EcoSmart/obj/Debug/net8.0/Domain.AssemblyInfo.cs b/EcoSmart/EcoSmart/obj/Debug/net8.0/Domain.AssemblyInfo.cs index 02ef151db72c1e50c613233461393131bf41e806..c1705f943e875c0d8b9cfa1e31a1ade7dca2dc08 100644 --- a/EcoSmart/EcoSmart/obj/Debug/net8.0/Domain.AssemblyInfo.cs +++ b/EcoSmart/EcoSmart/obj/Debug/net8.0/Domain.AssemblyInfo.cs @@ -14,7 +14,7 @@ using System.Reflection; [assembly: System.Reflection.AssemblyCompanyAttribute("Domain")] [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] -[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+60b972e5e6088abe3f62c790d2a3c64223e4aa1d")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+0194f9b45b9a1cc3a86675d5f2424e35226fe5f9")] [assembly: System.Reflection.AssemblyProductAttribute("Domain")] [assembly: System.Reflection.AssemblyTitleAttribute("Domain")] [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] diff --git a/EcoSmart/EcoSmart/obj/Debug/net8.0/Domain.AssemblyInfoInputs.cache b/EcoSmart/EcoSmart/obj/Debug/net8.0/Domain.AssemblyInfoInputs.cache index 333b31c99c1414fcca24431dc5e5f4379c55c247..c1a46c54b07d7801de6c7e6306642807f6de4c23 100644 --- a/EcoSmart/EcoSmart/obj/Debug/net8.0/Domain.AssemblyInfoInputs.cache +++ b/EcoSmart/EcoSmart/obj/Debug/net8.0/Domain.AssemblyInfoInputs.cache @@ -1 +1 @@ -c11b69c993538919badf0535bd92c604f728b3d63ddf82c246d3a04b37bf2a12 +eaec1c1be3092920a9db91d4d3e95e599ba19e73505a81732abd193b4d422fc0 diff --git a/EcoSmart/EcoSmart/obj/Debug/net8.0/Domain.dll b/EcoSmart/EcoSmart/obj/Debug/net8.0/Domain.dll index de005eb7858133548a20fafc00368c0a672bdac7..a5f10ac1560f2f98543f91798ebdd17b7c44e65f 100644 Binary files a/EcoSmart/EcoSmart/obj/Debug/net8.0/Domain.dll and b/EcoSmart/EcoSmart/obj/Debug/net8.0/Domain.dll differ diff --git a/EcoSmart/EcoSmart/obj/Debug/net8.0/Domain.pdb b/EcoSmart/EcoSmart/obj/Debug/net8.0/Domain.pdb index ada7e57ef88e15a5712d5b2806b8e697b14bdec2..75fd25c6fdd009da6e0238694b3732c5140021d0 100644 Binary files a/EcoSmart/EcoSmart/obj/Debug/net8.0/Domain.pdb and b/EcoSmart/EcoSmart/obj/Debug/net8.0/Domain.pdb differ diff --git a/EcoSmart/EcoSmart/obj/Debug/net8.0/ref/Domain.dll b/EcoSmart/EcoSmart/obj/Debug/net8.0/ref/Domain.dll index 5791ab68ce2c38d52184cfdb616ac4985333f2c7..60a014f2c36307e63ffbd1035b63cbe319404d4c 100644 Binary files a/EcoSmart/EcoSmart/obj/Debug/net8.0/ref/Domain.dll and b/EcoSmart/EcoSmart/obj/Debug/net8.0/ref/Domain.dll differ diff --git a/EcoSmart/EcoSmart/obj/Debug/net8.0/refint/Domain.dll b/EcoSmart/EcoSmart/obj/Debug/net8.0/refint/Domain.dll index 5791ab68ce2c38d52184cfdb616ac4985333f2c7..60a014f2c36307e63ffbd1035b63cbe319404d4c 100644 Binary files a/EcoSmart/EcoSmart/obj/Debug/net8.0/refint/Domain.dll and b/EcoSmart/EcoSmart/obj/Debug/net8.0/refint/Domain.dll differ diff --git a/EcoSmart/Infrastructure/Mapper/SensorDataMapperPersistence.cs b/EcoSmart/Infrastructure/Mapper/SensorDataMapperPersistence.cs index aea0242bc38eb3c884fba0be2a4b499756ee162b..f2a1356a2dfcbcc2c103d4b20a041bca652421a6 100644 --- a/EcoSmart/Infrastructure/Mapper/SensorDataMapperPersistence.cs +++ b/EcoSmart/Infrastructure/Mapper/SensorDataMapperPersistence.cs @@ -1,5 +1,4 @@ using Application.Dto; -using EcoSmart; using System; using System.Collections.Generic; using System.Linq; @@ -28,7 +27,7 @@ namespace Infrastructure.Mapper { throw new ArgumentException($"Invalid sensor type: {sensorDataDtoPersistence.Type}"); } - return new SensorData( + return new Domain.SensorData( sensorDataDtoPersistence.SensorId, type, sensorDataDtoPersistence.Value, diff --git a/EcoSmart/Infrastructure/Repositories/JsonSensorRepository.cs b/EcoSmart/Infrastructure/Repositories/JsonSensorRepository.cs index 243c31fea7c598d7506a6dcf8fd83ba38b204fe1..f9853b5200a013af25a0f183091ee8d442ef8d97 100644 --- a/EcoSmart/Infrastructure/Repositories/JsonSensorRepository.cs +++ b/EcoSmart/Infrastructure/Repositories/JsonSensorRepository.cs @@ -1,16 +1,18 @@ using Application.Interfaces; -using EcoSmart; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.Json; +using System.Text.Json.Serialization; using System.Threading.Tasks; +using Domain; namespace Infrastructure.Repositories { public class JsonSensorRepository : ISensorRepository { + // Implementazione del metodo LoadDataAsync definito nell'interfaccia ISensorRepository public async Task> LoadDataAsync(string filePath) { if (!File.Exists(filePath)) @@ -18,11 +20,14 @@ namespace Infrastructure.Repositories string json = await File.ReadAllTextAsync(filePath); // non blocca il thread principale + // Configurazione delle opzioni di deserializzazione var options = new JsonSerializerOptions { - PropertyNameCaseInsensitive = true // non sono key sensitive + PropertyNameCaseInsensitive = true, // ignora maiuscole/minuscole nei nomi delle proprietà + Converters = { new JsonStringEnumConverter(JsonNamingPolicy.CamelCase) } // converte le stringhe JSON in enum }; + // Deserializzazione del JSON in una lista di SensorData var data = JsonSerializer.Deserialize>(json, options); if (data == null) return new List(); diff --git a/EcoSmart/Infrastructure/bin/Debug/net8.0/Application.dll b/EcoSmart/Infrastructure/bin/Debug/net8.0/Application.dll new file mode 100644 index 0000000000000000000000000000000000000000..9f9ecfbf2d06a91dc6947722fca48ac152459ab8 Binary files /dev/null and b/EcoSmart/Infrastructure/bin/Debug/net8.0/Application.dll differ diff --git a/EcoSmart/Infrastructure/bin/Debug/net8.0/Application.pdb b/EcoSmart/Infrastructure/bin/Debug/net8.0/Application.pdb new file mode 100644 index 0000000000000000000000000000000000000000..44d487a343b77c1657ec22fb194e2724f4fb784f Binary files /dev/null and b/EcoSmart/Infrastructure/bin/Debug/net8.0/Application.pdb differ diff --git a/EcoSmart/Infrastructure/bin/Debug/net8.0/Domain.dll b/EcoSmart/Infrastructure/bin/Debug/net8.0/Domain.dll new file mode 100644 index 0000000000000000000000000000000000000000..a5f10ac1560f2f98543f91798ebdd17b7c44e65f Binary files /dev/null and b/EcoSmart/Infrastructure/bin/Debug/net8.0/Domain.dll differ diff --git a/EcoSmart/Infrastructure/bin/Debug/net8.0/Domain.pdb b/EcoSmart/Infrastructure/bin/Debug/net8.0/Domain.pdb new file mode 100644 index 0000000000000000000000000000000000000000..75fd25c6fdd009da6e0238694b3732c5140021d0 Binary files /dev/null and b/EcoSmart/Infrastructure/bin/Debug/net8.0/Domain.pdb differ diff --git a/EcoSmart/Infrastructure/bin/Debug/net8.0/Infrastructure.deps.json b/EcoSmart/Infrastructure/bin/Debug/net8.0/Infrastructure.deps.json new file mode 100644 index 0000000000000000000000000000000000000000..9df953134465cac249fdd6167bed6e1ae35974d5 --- /dev/null +++ b/EcoSmart/Infrastructure/bin/Debug/net8.0/Infrastructure.deps.json @@ -0,0 +1,55 @@ +{ + "runtimeTarget": { + "name": ".NETCoreApp,Version=v8.0", + "signature": "" + }, + "compilationOptions": {}, + "targets": { + ".NETCoreApp,Version=v8.0": { + "Infrastructure/1.0.0": { + "dependencies": { + "Application": "1.0.0" + }, + "runtime": { + "Infrastructure.dll": {} + } + }, + "Application/1.0.0": { + "dependencies": { + "Domain": "1.0.0" + }, + "runtime": { + "Application.dll": { + "assemblyVersion": "1.0.0.0", + "fileVersion": "1.0.0.0" + } + } + }, + "Domain/1.0.0": { + "runtime": { + "Domain.dll": { + "assemblyVersion": "1.0.0.0", + "fileVersion": "1.0.0.0" + } + } + } + } + }, + "libraries": { + "Infrastructure/1.0.0": { + "type": "project", + "serviceable": false, + "sha512": "" + }, + "Application/1.0.0": { + "type": "project", + "serviceable": false, + "sha512": "" + }, + "Domain/1.0.0": { + "type": "project", + "serviceable": false, + "sha512": "" + } + } +} \ No newline at end of file diff --git a/EcoSmart/Infrastructure/bin/Debug/net8.0/Infrastructure.dll b/EcoSmart/Infrastructure/bin/Debug/net8.0/Infrastructure.dll new file mode 100644 index 0000000000000000000000000000000000000000..ed1d136f475f6b37bc74d5ae58cc95d0c5c13382 Binary files /dev/null and b/EcoSmart/Infrastructure/bin/Debug/net8.0/Infrastructure.dll differ diff --git a/EcoSmart/Infrastructure/bin/Debug/net8.0/Infrastructure.pdb b/EcoSmart/Infrastructure/bin/Debug/net8.0/Infrastructure.pdb new file mode 100644 index 0000000000000000000000000000000000000000..74cf62819afc2b0c70b11ffd58a7e593509e68be Binary files /dev/null and b/EcoSmart/Infrastructure/bin/Debug/net8.0/Infrastructure.pdb differ diff --git a/EcoSmart/Infrastructure/obj/Debug/net8.0/Infrastr.15EFFBFE.Up2Date b/EcoSmart/Infrastructure/obj/Debug/net8.0/Infrastr.15EFFBFE.Up2Date new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/EcoSmart/Infrastructure/obj/Debug/net8.0/Infrastructure.AssemblyInfo.cs b/EcoSmart/Infrastructure/obj/Debug/net8.0/Infrastructure.AssemblyInfo.cs index c1a068364218ae4a76ecfc9c416c67dbfe8463ff..91a53e1c64f989371fae6f6c8d534ca52dea34a4 100644 --- a/EcoSmart/Infrastructure/obj/Debug/net8.0/Infrastructure.AssemblyInfo.cs +++ b/EcoSmart/Infrastructure/obj/Debug/net8.0/Infrastructure.AssemblyInfo.cs @@ -14,7 +14,7 @@ using System.Reflection; [assembly: System.Reflection.AssemblyCompanyAttribute("Infrastructure")] [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] -[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+9fe5c2d269af2856bac1b53f6c393ab8b15b814d")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+0194f9b45b9a1cc3a86675d5f2424e35226fe5f9")] [assembly: System.Reflection.AssemblyProductAttribute("Infrastructure")] [assembly: System.Reflection.AssemblyTitleAttribute("Infrastructure")] [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] diff --git a/EcoSmart/Infrastructure/obj/Debug/net8.0/Infrastructure.AssemblyInfoInputs.cache b/EcoSmart/Infrastructure/obj/Debug/net8.0/Infrastructure.AssemblyInfoInputs.cache index 8d346efda7ed51f776f721ced3f70dea714a8283..c46355809c91071cf63891d9f5ec722b2f7af1c1 100644 --- a/EcoSmart/Infrastructure/obj/Debug/net8.0/Infrastructure.AssemblyInfoInputs.cache +++ b/EcoSmart/Infrastructure/obj/Debug/net8.0/Infrastructure.AssemblyInfoInputs.cache @@ -1 +1 @@ -dc798ca0df6f41fb52ed072d00b9f840ff1fad3dcb0d7f1c884851d267661d51 +10d39c01308f849a19e60f0a4c5975b4a2c7aa5f86bf67e6960905a72b6cfae3 diff --git a/EcoSmart/Infrastructure/obj/Debug/net8.0/Infrastructure.csproj.AssemblyReference.cache b/EcoSmart/Infrastructure/obj/Debug/net8.0/Infrastructure.csproj.AssemblyReference.cache index 97c5a63872eb23ed7b83ca017e52a994227bc64e..aaabdfa512a80d7e9a941c4273ca8bdda68d1ee8 100644 Binary files a/EcoSmart/Infrastructure/obj/Debug/net8.0/Infrastructure.csproj.AssemblyReference.cache and b/EcoSmart/Infrastructure/obj/Debug/net8.0/Infrastructure.csproj.AssemblyReference.cache differ diff --git a/EcoSmart/Infrastructure/obj/Debug/net8.0/Infrastructure.csproj.BuildWithSkipAnalyzers b/EcoSmart/Infrastructure/obj/Debug/net8.0/Infrastructure.csproj.BuildWithSkipAnalyzers new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/EcoSmart/Infrastructure/obj/Debug/net8.0/Infrastructure.csproj.CoreCompileInputs.cache b/EcoSmart/Infrastructure/obj/Debug/net8.0/Infrastructure.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000000000000000000000000000000000000..b5c210cc9c886a24c6cf49d11698c973466619bd --- /dev/null +++ b/EcoSmart/Infrastructure/obj/Debug/net8.0/Infrastructure.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +9d1e016a889f7da104643d6b6b3cece8b1b1dfef328734982b2a3b2969117940 diff --git a/EcoSmart/Infrastructure/obj/Debug/net8.0/Infrastructure.csproj.FileListAbsolute.txt b/EcoSmart/Infrastructure/obj/Debug/net8.0/Infrastructure.csproj.FileListAbsolute.txt new file mode 100644 index 0000000000000000000000000000000000000000..e2b079552456deac8b3ea60350a03b10486b177e --- /dev/null +++ b/EcoSmart/Infrastructure/obj/Debug/net8.0/Infrastructure.csproj.FileListAbsolute.txt @@ -0,0 +1,17 @@ +C:\Users\Utente\Desktop\ecosmart-chiamate-asincrone-e-linq\EcoSmart\Infrastructure\bin\Debug\net8.0\Infrastructure.deps.json +C:\Users\Utente\Desktop\ecosmart-chiamate-asincrone-e-linq\EcoSmart\Infrastructure\bin\Debug\net8.0\Infrastructure.dll +C:\Users\Utente\Desktop\ecosmart-chiamate-asincrone-e-linq\EcoSmart\Infrastructure\bin\Debug\net8.0\Infrastructure.pdb +C:\Users\Utente\Desktop\ecosmart-chiamate-asincrone-e-linq\EcoSmart\Infrastructure\bin\Debug\net8.0\Application.dll +C:\Users\Utente\Desktop\ecosmart-chiamate-asincrone-e-linq\EcoSmart\Infrastructure\bin\Debug\net8.0\Domain.dll +C:\Users\Utente\Desktop\ecosmart-chiamate-asincrone-e-linq\EcoSmart\Infrastructure\bin\Debug\net8.0\Application.pdb +C:\Users\Utente\Desktop\ecosmart-chiamate-asincrone-e-linq\EcoSmart\Infrastructure\bin\Debug\net8.0\Domain.pdb +C:\Users\Utente\Desktop\ecosmart-chiamate-asincrone-e-linq\EcoSmart\Infrastructure\obj\Debug\net8.0\Infrastructure.csproj.AssemblyReference.cache +C:\Users\Utente\Desktop\ecosmart-chiamate-asincrone-e-linq\EcoSmart\Infrastructure\obj\Debug\net8.0\Infrastructure.GeneratedMSBuildEditorConfig.editorconfig +C:\Users\Utente\Desktop\ecosmart-chiamate-asincrone-e-linq\EcoSmart\Infrastructure\obj\Debug\net8.0\Infrastructure.AssemblyInfoInputs.cache +C:\Users\Utente\Desktop\ecosmart-chiamate-asincrone-e-linq\EcoSmart\Infrastructure\obj\Debug\net8.0\Infrastructure.AssemblyInfo.cs +C:\Users\Utente\Desktop\ecosmart-chiamate-asincrone-e-linq\EcoSmart\Infrastructure\obj\Debug\net8.0\Infrastructure.csproj.CoreCompileInputs.cache +C:\Users\Utente\Desktop\ecosmart-chiamate-asincrone-e-linq\EcoSmart\Infrastructure\obj\Debug\net8.0\Infrastr.15EFFBFE.Up2Date +C:\Users\Utente\Desktop\ecosmart-chiamate-asincrone-e-linq\EcoSmart\Infrastructure\obj\Debug\net8.0\Infrastructure.dll +C:\Users\Utente\Desktop\ecosmart-chiamate-asincrone-e-linq\EcoSmart\Infrastructure\obj\Debug\net8.0\refint\Infrastructure.dll +C:\Users\Utente\Desktop\ecosmart-chiamate-asincrone-e-linq\EcoSmart\Infrastructure\obj\Debug\net8.0\Infrastructure.pdb +C:\Users\Utente\Desktop\ecosmart-chiamate-asincrone-e-linq\EcoSmart\Infrastructure\obj\Debug\net8.0\ref\Infrastructure.dll diff --git a/EcoSmart/Infrastructure/obj/Debug/net8.0/Infrastructure.dll b/EcoSmart/Infrastructure/obj/Debug/net8.0/Infrastructure.dll new file mode 100644 index 0000000000000000000000000000000000000000..ed1d136f475f6b37bc74d5ae58cc95d0c5c13382 Binary files /dev/null and b/EcoSmart/Infrastructure/obj/Debug/net8.0/Infrastructure.dll differ diff --git a/EcoSmart/Infrastructure/obj/Debug/net8.0/Infrastructure.pdb b/EcoSmart/Infrastructure/obj/Debug/net8.0/Infrastructure.pdb new file mode 100644 index 0000000000000000000000000000000000000000..74cf62819afc2b0c70b11ffd58a7e593509e68be Binary files /dev/null and b/EcoSmart/Infrastructure/obj/Debug/net8.0/Infrastructure.pdb differ diff --git a/EcoSmart/Infrastructure/obj/Debug/net8.0/ref/Infrastructure.dll b/EcoSmart/Infrastructure/obj/Debug/net8.0/ref/Infrastructure.dll new file mode 100644 index 0000000000000000000000000000000000000000..0608b9b49ab122713ac02bcf4657dabf07b2c061 Binary files /dev/null and b/EcoSmart/Infrastructure/obj/Debug/net8.0/ref/Infrastructure.dll differ diff --git a/EcoSmart/Infrastructure/obj/Debug/net8.0/refint/Infrastructure.dll b/EcoSmart/Infrastructure/obj/Debug/net8.0/refint/Infrastructure.dll new file mode 100644 index 0000000000000000000000000000000000000000..0608b9b49ab122713ac02bcf4657dabf07b2c061 Binary files /dev/null and b/EcoSmart/Infrastructure/obj/Debug/net8.0/refint/Infrastructure.dll differ diff --git a/EcoSmart/Presentation/Presentation.csproj b/EcoSmart/Presentation/Presentation.csproj new file mode 100644 index 0000000000000000000000000000000000000000..b2e2cc60f46d84acb7c34cfd537904152f49f361 --- /dev/null +++ b/EcoSmart/Presentation/Presentation.csproj @@ -0,0 +1,15 @@ + + + + Exe + net8.0 + enable + enable + + + + + + + + diff --git a/EcoSmart/Presentation/Program.cs b/EcoSmart/Presentation/Program.cs new file mode 100644 index 0000000000000000000000000000000000000000..b0caf15fa4f85cee572ffc3f6e9c0e2caacd939c --- /dev/null +++ b/EcoSmart/Presentation/Program.cs @@ -0,0 +1,46 @@ +using Application.Interfaces; +using Application.UseCases; +using Domain; +using Infrastructure.Repositories; + +namespace Presentation +{ + internal class Program + { + static void Main(string[] args) + { + Console.WriteLine("Current directory: " + Environment.CurrentDirectory); + Console.WriteLine("File exists? " + File.Exists("sensors.json.txt")); + + Console.WriteLine("\n---ECO SMART---"); + + // 1. Creazione repository (Infrastructure) + ISensorRepository repository = new JsonSensorRepository(); + + // 2. Creazione service (Application) + SensorService service = new SensorService(repository); + + // 3. Percorso del file JSON + string filePath = "sensors.json.txt"; + + // 4. Caricamento dati (async) + List data = service.GetAllAsync(filePath).GetAwaiter().GetResult(); + + // 5. Uso dei metodi LINQ + double avgTemp = service.GetAverageTemperatureLast24Hours(data); + var highCo2 = service.GetHighCO2Sensors(data); + var maxHumidity = service.GetMaxHumidityBySensor(data); + + // 6. Stampa risultati + Console.WriteLine($"Temperatura media nelle ultime 24h: {avgTemp}"); + + Console.WriteLine("\nSensori CO2 > 1000 ppm:"); + foreach (var s in highCo2) + Console.WriteLine(s); + + Console.WriteLine("\nMassima umidità per sensore:"); + foreach (var kv in maxHumidity) + Console.WriteLine($"{kv.Key}: {kv.Value}"); + } + } +} diff --git a/EcoSmart/Presentation/bin/Debug/net8.0/Application.dll b/EcoSmart/Presentation/bin/Debug/net8.0/Application.dll new file mode 100644 index 0000000000000000000000000000000000000000..9f9ecfbf2d06a91dc6947722fca48ac152459ab8 Binary files /dev/null and b/EcoSmart/Presentation/bin/Debug/net8.0/Application.dll differ diff --git a/EcoSmart/Presentation/bin/Debug/net8.0/Application.pdb b/EcoSmart/Presentation/bin/Debug/net8.0/Application.pdb new file mode 100644 index 0000000000000000000000000000000000000000..44d487a343b77c1657ec22fb194e2724f4fb784f Binary files /dev/null and b/EcoSmart/Presentation/bin/Debug/net8.0/Application.pdb differ diff --git a/EcoSmart/Presentation/bin/Debug/net8.0/Domain.dll b/EcoSmart/Presentation/bin/Debug/net8.0/Domain.dll new file mode 100644 index 0000000000000000000000000000000000000000..a5f10ac1560f2f98543f91798ebdd17b7c44e65f Binary files /dev/null and b/EcoSmart/Presentation/bin/Debug/net8.0/Domain.dll differ diff --git a/EcoSmart/Presentation/bin/Debug/net8.0/Domain.pdb b/EcoSmart/Presentation/bin/Debug/net8.0/Domain.pdb new file mode 100644 index 0000000000000000000000000000000000000000..75fd25c6fdd009da6e0238694b3732c5140021d0 Binary files /dev/null and b/EcoSmart/Presentation/bin/Debug/net8.0/Domain.pdb differ diff --git a/EcoSmart/Presentation/bin/Debug/net8.0/Infrastructure.dll b/EcoSmart/Presentation/bin/Debug/net8.0/Infrastructure.dll new file mode 100644 index 0000000000000000000000000000000000000000..ed1d136f475f6b37bc74d5ae58cc95d0c5c13382 Binary files /dev/null and b/EcoSmart/Presentation/bin/Debug/net8.0/Infrastructure.dll differ diff --git a/EcoSmart/Presentation/bin/Debug/net8.0/Infrastructure.pdb b/EcoSmart/Presentation/bin/Debug/net8.0/Infrastructure.pdb new file mode 100644 index 0000000000000000000000000000000000000000..74cf62819afc2b0c70b11ffd58a7e593509e68be Binary files /dev/null and b/EcoSmart/Presentation/bin/Debug/net8.0/Infrastructure.pdb differ diff --git a/EcoSmart/Presentation/bin/Debug/net8.0/Presentation.deps.json b/EcoSmart/Presentation/bin/Debug/net8.0/Presentation.deps.json new file mode 100644 index 0000000000000000000000000000000000000000..b7a4f6eb0b1435a781ebcb298550aaae3afc4c1d --- /dev/null +++ b/EcoSmart/Presentation/bin/Debug/net8.0/Presentation.deps.json @@ -0,0 +1,72 @@ +{ + "runtimeTarget": { + "name": ".NETCoreApp,Version=v8.0", + "signature": "" + }, + "compilationOptions": {}, + "targets": { + ".NETCoreApp,Version=v8.0": { + "Presentation/1.0.0": { + "dependencies": { + "Application": "1.0.0", + "Infrastructure": "1.0.0" + }, + "runtime": { + "Presentation.dll": {} + } + }, + "Application/1.0.0": { + "dependencies": { + "Domain": "1.0.0" + }, + "runtime": { + "Application.dll": { + "assemblyVersion": "1.0.0.0", + "fileVersion": "1.0.0.0" + } + } + }, + "Domain/1.0.0": { + "runtime": { + "Domain.dll": { + "assemblyVersion": "1.0.0.0", + "fileVersion": "1.0.0.0" + } + } + }, + "Infrastructure/1.0.0": { + "dependencies": { + "Application": "1.0.0" + }, + "runtime": { + "Infrastructure.dll": { + "assemblyVersion": "1.0.0.0", + "fileVersion": "1.0.0.0" + } + } + } + } + }, + "libraries": { + "Presentation/1.0.0": { + "type": "project", + "serviceable": false, + "sha512": "" + }, + "Application/1.0.0": { + "type": "project", + "serviceable": false, + "sha512": "" + }, + "Domain/1.0.0": { + "type": "project", + "serviceable": false, + "sha512": "" + }, + "Infrastructure/1.0.0": { + "type": "project", + "serviceable": false, + "sha512": "" + } + } +} \ No newline at end of file diff --git a/EcoSmart/Presentation/bin/Debug/net8.0/Presentation.dll b/EcoSmart/Presentation/bin/Debug/net8.0/Presentation.dll new file mode 100644 index 0000000000000000000000000000000000000000..a1e385395baf831e2c503635f8b0cced0a630120 Binary files /dev/null and b/EcoSmart/Presentation/bin/Debug/net8.0/Presentation.dll differ diff --git a/EcoSmart/Presentation/bin/Debug/net8.0/Presentation.exe b/EcoSmart/Presentation/bin/Debug/net8.0/Presentation.exe new file mode 100644 index 0000000000000000000000000000000000000000..74c0c09b6d2b79b946b2728a15a123b6c318c443 Binary files /dev/null and b/EcoSmart/Presentation/bin/Debug/net8.0/Presentation.exe differ diff --git a/EcoSmart/Presentation/bin/Debug/net8.0/Presentation.pdb b/EcoSmart/Presentation/bin/Debug/net8.0/Presentation.pdb new file mode 100644 index 0000000000000000000000000000000000000000..6e5328d7aeba2f8c71f8014cdc55b736ff02a3a4 Binary files /dev/null and b/EcoSmart/Presentation/bin/Debug/net8.0/Presentation.pdb differ diff --git a/EcoSmart/Presentation/bin/Debug/net8.0/Presentation.runtimeconfig.json b/EcoSmart/Presentation/bin/Debug/net8.0/Presentation.runtimeconfig.json new file mode 100644 index 0000000000000000000000000000000000000000..becfaeac95a0a28c70ce619e835f5322a54d3426 --- /dev/null +++ b/EcoSmart/Presentation/bin/Debug/net8.0/Presentation.runtimeconfig.json @@ -0,0 +1,12 @@ +{ + "runtimeOptions": { + "tfm": "net8.0", + "framework": { + "name": "Microsoft.NETCore.App", + "version": "8.0.0" + }, + "configProperties": { + "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false + } + } +} \ No newline at end of file diff --git a/EcoSmart/Presentation/bin/Debug/net8.0/sensors.json.txt b/EcoSmart/Presentation/bin/Debug/net8.0/sensors.json.txt new file mode 100644 index 0000000000000000000000000000000000000000..c5bf3b955e286703053d8b9e6176de4f2e78a6ed --- /dev/null +++ b/EcoSmart/Presentation/bin/Debug/net8.0/sensors.json.txt @@ -0,0 +1,11 @@ +[ +{ "SensorId": "SN-001", "Type": "Temperature", "Value": 22.5, "Timestamp": "2026-01-06T10:00:00" }, +{ "SensorId": "SN-002", "Type": "CO2", "Value": 1200.0, "Timestamp": "2026-01-05T10:05:00" }, +{ "SensorId": "SN-001", "Type": "Humidity", "Value": 45.0, "Timestamp": "2026-01-05T10:10:00" }, +{ "SensorId": "SN-002", "Type": "Temperature", "Value": 22.5, "Timestamp": "2026-01-06T10:00:00" }, +{ "SensorId": "SN-003", "Type": "CO2", "Value": 1200.0, "Timestamp": "2026-01-05T10:05:00" }, +{ "SensorId": "SN-001", "Type": "Humidity", "Value": 745.0, "Timestamp": "2026-01-05T10:10:00" }, +{ "SensorId": "SN-003", "Type": "Temperature", "Value": 22.5, "Timestamp": "2026-01-06T10:00:00" }, +{ "SensorId": "SN-004", "Type": "CO2", "Value": 12.0, "Timestamp": "2026-01-05T10:05:00" }, +{ "SensorId": "SN-002", "Type": "Humidity", "Value": 45.0, "Timestamp": "2026-01-05T10:10:00" } +] \ No newline at end of file diff --git a/EcoSmart/Presentation/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs b/EcoSmart/Presentation/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs new file mode 100644 index 0000000000000000000000000000000000000000..2217181c88bdc64e587ffe6e9301b67e1d462aab --- /dev/null +++ b/EcoSmart/Presentation/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")] diff --git a/EcoSmart/Presentation/obj/Debug/net8.0/Presenta.BC777DBE.Up2Date b/EcoSmart/Presentation/obj/Debug/net8.0/Presenta.BC777DBE.Up2Date new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/EcoSmart/Presentation/obj/Debug/net8.0/Presentation.AssemblyInfo.cs b/EcoSmart/Presentation/obj/Debug/net8.0/Presentation.AssemblyInfo.cs new file mode 100644 index 0000000000000000000000000000000000000000..7db3b8ddfa38bad227869f34df4d185d45092790 --- /dev/null +++ b/EcoSmart/Presentation/obj/Debug/net8.0/Presentation.AssemblyInfo.cs @@ -0,0 +1,23 @@ +//------------------------------------------------------------------------------ +// +// Il codice è stato generato da uno strumento. +// Versione runtime:4.0.30319.42000 +// +// Le modifiche apportate a questo file possono provocare un comportamento non corretto e andranno perse se +// il codice viene rigenerato. +// +//------------------------------------------------------------------------------ + +using System; +using System.Reflection; + +[assembly: System.Reflection.AssemblyCompanyAttribute("Presentation")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+0194f9b45b9a1cc3a86675d5f2424e35226fe5f9")] +[assembly: System.Reflection.AssemblyProductAttribute("Presentation")] +[assembly: System.Reflection.AssemblyTitleAttribute("Presentation")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Generato dalla classe WriteCodeFragment di MSBuild. + diff --git a/EcoSmart/Presentation/obj/Debug/net8.0/Presentation.AssemblyInfoInputs.cache b/EcoSmart/Presentation/obj/Debug/net8.0/Presentation.AssemblyInfoInputs.cache new file mode 100644 index 0000000000000000000000000000000000000000..5355147e64a4dbba955f4770b5d520c749c5c34f --- /dev/null +++ b/EcoSmart/Presentation/obj/Debug/net8.0/Presentation.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +56f10fc46b42b3937d675b062225a277dff03cd7e98a99d68c37d1ec92e83d40 diff --git a/EcoSmart/Presentation/obj/Debug/net8.0/Presentation.GeneratedMSBuildEditorConfig.editorconfig b/EcoSmart/Presentation/obj/Debug/net8.0/Presentation.GeneratedMSBuildEditorConfig.editorconfig new file mode 100644 index 0000000000000000000000000000000000000000..a736665522eb741119a52e705c77b0327aecdcf3 --- /dev/null +++ b/EcoSmart/Presentation/obj/Debug/net8.0/Presentation.GeneratedMSBuildEditorConfig.editorconfig @@ -0,0 +1,15 @@ +is_global = true +build_property.TargetFramework = net8.0 +build_property.TargetPlatformMinVersion = +build_property.UsingMicrosoftNETSdkWeb = +build_property.ProjectTypeGuids = +build_property.InvariantGlobalization = +build_property.PlatformNeutralAssembly = +build_property.EnforceExtendedAnalyzerRules = +build_property._SupportedPlatformList = Linux,macOS,Windows +build_property.RootNamespace = Presentation +build_property.ProjectDir = C:\Users\Utente\Desktop\ecosmart-chiamate-asincrone-e-linq\EcoSmart\Presentation\ +build_property.EnableComHosting = +build_property.EnableGeneratedComInterfaceComImportInterop = +build_property.EffectiveAnalysisLevelStyle = 8.0 +build_property.EnableCodeStyleSeverity = diff --git a/EcoSmart/Presentation/obj/Debug/net8.0/Presentation.GlobalUsings.g.cs b/EcoSmart/Presentation/obj/Debug/net8.0/Presentation.GlobalUsings.g.cs new file mode 100644 index 0000000000000000000000000000000000000000..8578f3d03de56aa5afbb2e6a3f0a9055b075f7fd --- /dev/null +++ b/EcoSmart/Presentation/obj/Debug/net8.0/Presentation.GlobalUsings.g.cs @@ -0,0 +1,8 @@ +// +global using global::System; +global using global::System.Collections.Generic; +global using global::System.IO; +global using global::System.Linq; +global using global::System.Net.Http; +global using global::System.Threading; +global using global::System.Threading.Tasks; diff --git a/EcoSmart/Presentation/obj/Debug/net8.0/Presentation.assets.cache b/EcoSmart/Presentation/obj/Debug/net8.0/Presentation.assets.cache new file mode 100644 index 0000000000000000000000000000000000000000..cf312b1d0bb0c71c35bc1297156ec76a911cde2e Binary files /dev/null and b/EcoSmart/Presentation/obj/Debug/net8.0/Presentation.assets.cache differ diff --git a/EcoSmart/Presentation/obj/Debug/net8.0/Presentation.csproj.AssemblyReference.cache b/EcoSmart/Presentation/obj/Debug/net8.0/Presentation.csproj.AssemblyReference.cache new file mode 100644 index 0000000000000000000000000000000000000000..514fbb7cfe19d27f5642ba71cd133113b2487c52 Binary files /dev/null and b/EcoSmart/Presentation/obj/Debug/net8.0/Presentation.csproj.AssemblyReference.cache differ diff --git a/EcoSmart/Presentation/obj/Debug/net8.0/Presentation.csproj.BuildWithSkipAnalyzers b/EcoSmart/Presentation/obj/Debug/net8.0/Presentation.csproj.BuildWithSkipAnalyzers new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/EcoSmart/Presentation/obj/Debug/net8.0/Presentation.csproj.CoreCompileInputs.cache b/EcoSmart/Presentation/obj/Debug/net8.0/Presentation.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000000000000000000000000000000000000..8a6abc343b4f3a201943f900069ab7be9718e11a --- /dev/null +++ b/EcoSmart/Presentation/obj/Debug/net8.0/Presentation.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +b115f88484dddb78c4d725e6886730378ad4427294a30b28eaff2fc5dc60290d diff --git a/EcoSmart/Presentation/obj/Debug/net8.0/Presentation.csproj.FileListAbsolute.txt b/EcoSmart/Presentation/obj/Debug/net8.0/Presentation.csproj.FileListAbsolute.txt new file mode 100644 index 0000000000000000000000000000000000000000..e8285dea21c5886988d3cb27aef370f89e15f0e3 --- /dev/null +++ b/EcoSmart/Presentation/obj/Debug/net8.0/Presentation.csproj.FileListAbsolute.txt @@ -0,0 +1,22 @@ +C:\Users\Utente\Desktop\ecosmart-chiamate-asincrone-e-linq\EcoSmart\Presentation\bin\Debug\net8.0\Presentation.exe +C:\Users\Utente\Desktop\ecosmart-chiamate-asincrone-e-linq\EcoSmart\Presentation\bin\Debug\net8.0\Presentation.deps.json +C:\Users\Utente\Desktop\ecosmart-chiamate-asincrone-e-linq\EcoSmart\Presentation\bin\Debug\net8.0\Presentation.runtimeconfig.json +C:\Users\Utente\Desktop\ecosmart-chiamate-asincrone-e-linq\EcoSmart\Presentation\bin\Debug\net8.0\Presentation.dll +C:\Users\Utente\Desktop\ecosmart-chiamate-asincrone-e-linq\EcoSmart\Presentation\bin\Debug\net8.0\Presentation.pdb +C:\Users\Utente\Desktop\ecosmart-chiamate-asincrone-e-linq\EcoSmart\Presentation\bin\Debug\net8.0\Application.dll +C:\Users\Utente\Desktop\ecosmart-chiamate-asincrone-e-linq\EcoSmart\Presentation\bin\Debug\net8.0\Domain.dll +C:\Users\Utente\Desktop\ecosmart-chiamate-asincrone-e-linq\EcoSmart\Presentation\bin\Debug\net8.0\Infrastructure.dll +C:\Users\Utente\Desktop\ecosmart-chiamate-asincrone-e-linq\EcoSmart\Presentation\bin\Debug\net8.0\Application.pdb +C:\Users\Utente\Desktop\ecosmart-chiamate-asincrone-e-linq\EcoSmart\Presentation\bin\Debug\net8.0\Infrastructure.pdb +C:\Users\Utente\Desktop\ecosmart-chiamate-asincrone-e-linq\EcoSmart\Presentation\bin\Debug\net8.0\Domain.pdb +C:\Users\Utente\Desktop\ecosmart-chiamate-asincrone-e-linq\EcoSmart\Presentation\obj\Debug\net8.0\Presentation.csproj.AssemblyReference.cache +C:\Users\Utente\Desktop\ecosmart-chiamate-asincrone-e-linq\EcoSmart\Presentation\obj\Debug\net8.0\Presentation.GeneratedMSBuildEditorConfig.editorconfig +C:\Users\Utente\Desktop\ecosmart-chiamate-asincrone-e-linq\EcoSmart\Presentation\obj\Debug\net8.0\Presentation.AssemblyInfoInputs.cache +C:\Users\Utente\Desktop\ecosmart-chiamate-asincrone-e-linq\EcoSmart\Presentation\obj\Debug\net8.0\Presentation.AssemblyInfo.cs +C:\Users\Utente\Desktop\ecosmart-chiamate-asincrone-e-linq\EcoSmart\Presentation\obj\Debug\net8.0\Presentation.csproj.CoreCompileInputs.cache +C:\Users\Utente\Desktop\ecosmart-chiamate-asincrone-e-linq\EcoSmart\Presentation\obj\Debug\net8.0\Presenta.BC777DBE.Up2Date +C:\Users\Utente\Desktop\ecosmart-chiamate-asincrone-e-linq\EcoSmart\Presentation\obj\Debug\net8.0\Presentation.dll +C:\Users\Utente\Desktop\ecosmart-chiamate-asincrone-e-linq\EcoSmart\Presentation\obj\Debug\net8.0\refint\Presentation.dll +C:\Users\Utente\Desktop\ecosmart-chiamate-asincrone-e-linq\EcoSmart\Presentation\obj\Debug\net8.0\Presentation.pdb +C:\Users\Utente\Desktop\ecosmart-chiamate-asincrone-e-linq\EcoSmart\Presentation\obj\Debug\net8.0\Presentation.genruntimeconfig.cache +C:\Users\Utente\Desktop\ecosmart-chiamate-asincrone-e-linq\EcoSmart\Presentation\obj\Debug\net8.0\ref\Presentation.dll diff --git a/EcoSmart/Presentation/obj/Debug/net8.0/Presentation.dll b/EcoSmart/Presentation/obj/Debug/net8.0/Presentation.dll new file mode 100644 index 0000000000000000000000000000000000000000..a1e385395baf831e2c503635f8b0cced0a630120 Binary files /dev/null and b/EcoSmart/Presentation/obj/Debug/net8.0/Presentation.dll differ diff --git a/EcoSmart/Presentation/obj/Debug/net8.0/Presentation.genruntimeconfig.cache b/EcoSmart/Presentation/obj/Debug/net8.0/Presentation.genruntimeconfig.cache new file mode 100644 index 0000000000000000000000000000000000000000..61526e7e0e9a7985a3844c98b6050ac17c82128d --- /dev/null +++ b/EcoSmart/Presentation/obj/Debug/net8.0/Presentation.genruntimeconfig.cache @@ -0,0 +1 @@ +8ee6e34389e8b79eb6385320746469a4996e29ad94ee924c66e825ef72ad3903 diff --git a/EcoSmart/Presentation/obj/Debug/net8.0/Presentation.pdb b/EcoSmart/Presentation/obj/Debug/net8.0/Presentation.pdb new file mode 100644 index 0000000000000000000000000000000000000000..6e5328d7aeba2f8c71f8014cdc55b736ff02a3a4 Binary files /dev/null and b/EcoSmart/Presentation/obj/Debug/net8.0/Presentation.pdb differ diff --git a/EcoSmart/Presentation/obj/Debug/net8.0/apphost.exe b/EcoSmart/Presentation/obj/Debug/net8.0/apphost.exe new file mode 100644 index 0000000000000000000000000000000000000000..74c0c09b6d2b79b946b2728a15a123b6c318c443 Binary files /dev/null and b/EcoSmart/Presentation/obj/Debug/net8.0/apphost.exe differ diff --git a/EcoSmart/Presentation/obj/Debug/net8.0/ref/Presentation.dll b/EcoSmart/Presentation/obj/Debug/net8.0/ref/Presentation.dll new file mode 100644 index 0000000000000000000000000000000000000000..a8593e8f05a5441234a723c448a9efc6ea3c13de Binary files /dev/null and b/EcoSmart/Presentation/obj/Debug/net8.0/ref/Presentation.dll differ diff --git a/EcoSmart/Presentation/obj/Debug/net8.0/refint/Presentation.dll b/EcoSmart/Presentation/obj/Debug/net8.0/refint/Presentation.dll new file mode 100644 index 0000000000000000000000000000000000000000..a8593e8f05a5441234a723c448a9efc6ea3c13de Binary files /dev/null and b/EcoSmart/Presentation/obj/Debug/net8.0/refint/Presentation.dll differ diff --git a/EcoSmart/Presentation/obj/Presentation.csproj.nuget.dgspec.json b/EcoSmart/Presentation/obj/Presentation.csproj.nuget.dgspec.json new file mode 100644 index 0000000000000000000000000000000000000000..a329c6d4e974d57f64ebc12d8656285d5158b7d6 --- /dev/null +++ b/EcoSmart/Presentation/obj/Presentation.csproj.nuget.dgspec.json @@ -0,0 +1,287 @@ +{ + "format": 1, + "restore": { + "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\Presentation\\Presentation.csproj": {} + }, + "projects": { + "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\Application\\Application.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\Application\\Application.csproj", + "projectName": "Application", + "projectPath": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\Application\\Application.csproj", + "packagesPath": "C:\\Users\\Utente\\.nuget\\packages\\", + "outputPath": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\Application\\obj\\", + "projectStyle": "PackageReference", + "fallbackFolders": [ + "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages" + ], + "configFilePaths": [ + "C:\\Users\\Utente\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "net8.0" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "C:\\Program Files\\dotnet\\library-packs": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net8.0": { + "targetAlias": "net8.0", + "projectReferences": { + "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\EcoSmart\\Domain.csproj": { + "projectPath": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\EcoSmart\\Domain.csproj" + } + } + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + }, + "restoreAuditProperties": { + "enableAudit": "true", + "auditLevel": "low", + "auditMode": "direct" + }, + "SdkAnalysisLevel": "9.0.300" + }, + "frameworks": { + "net8.0": { + "targetAlias": "net8.0", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48", + "net481" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\9.0.304/PortableRuntimeIdentifierGraph.json" + } + } + }, + "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\EcoSmart\\Domain.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\EcoSmart\\Domain.csproj", + "projectName": "Domain", + "projectPath": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\EcoSmart\\Domain.csproj", + "packagesPath": "C:\\Users\\Utente\\.nuget\\packages\\", + "outputPath": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\EcoSmart\\obj\\", + "projectStyle": "PackageReference", + "fallbackFolders": [ + "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages" + ], + "configFilePaths": [ + "C:\\Users\\Utente\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "net8.0" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "C:\\Program Files\\dotnet\\library-packs": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net8.0": { + "targetAlias": "net8.0", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + }, + "restoreAuditProperties": { + "enableAudit": "true", + "auditLevel": "low", + "auditMode": "direct" + }, + "SdkAnalysisLevel": "9.0.300" + }, + "frameworks": { + "net8.0": { + "targetAlias": "net8.0", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48", + "net481" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\9.0.304/PortableRuntimeIdentifierGraph.json" + } + } + }, + "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\Infrastructure\\Infrastructure.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\Infrastructure\\Infrastructure.csproj", + "projectName": "Infrastructure", + "projectPath": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\Infrastructure\\Infrastructure.csproj", + "packagesPath": "C:\\Users\\Utente\\.nuget\\packages\\", + "outputPath": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\Infrastructure\\obj\\", + "projectStyle": "PackageReference", + "fallbackFolders": [ + "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages" + ], + "configFilePaths": [ + "C:\\Users\\Utente\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "net8.0" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "C:\\Program Files\\dotnet\\library-packs": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net8.0": { + "targetAlias": "net8.0", + "projectReferences": { + "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\Application\\Application.csproj": { + "projectPath": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\Application\\Application.csproj" + } + } + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + }, + "restoreAuditProperties": { + "enableAudit": "true", + "auditLevel": "low", + "auditMode": "direct" + }, + "SdkAnalysisLevel": "9.0.300" + }, + "frameworks": { + "net8.0": { + "targetAlias": "net8.0", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48", + "net481" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\9.0.304/PortableRuntimeIdentifierGraph.json" + } + } + }, + "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\Presentation\\Presentation.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\Presentation\\Presentation.csproj", + "projectName": "Presentation", + "projectPath": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\Presentation\\Presentation.csproj", + "packagesPath": "C:\\Users\\Utente\\.nuget\\packages\\", + "outputPath": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\Presentation\\obj\\", + "projectStyle": "PackageReference", + "fallbackFolders": [ + "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages" + ], + "configFilePaths": [ + "C:\\Users\\Utente\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "net8.0" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "C:\\Program Files\\dotnet\\library-packs": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net8.0": { + "targetAlias": "net8.0", + "projectReferences": { + "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\Application\\Application.csproj": { + "projectPath": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\Application\\Application.csproj" + }, + "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\Infrastructure\\Infrastructure.csproj": { + "projectPath": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\Infrastructure\\Infrastructure.csproj" + } + } + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + }, + "restoreAuditProperties": { + "enableAudit": "true", + "auditLevel": "low", + "auditMode": "direct" + }, + "SdkAnalysisLevel": "9.0.300" + }, + "frameworks": { + "net8.0": { + "targetAlias": "net8.0", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48", + "net481" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\9.0.304/PortableRuntimeIdentifierGraph.json" + } + } + } + } +} \ No newline at end of file diff --git a/EcoSmart/Presentation/obj/Presentation.csproj.nuget.g.props b/EcoSmart/Presentation/obj/Presentation.csproj.nuget.g.props new file mode 100644 index 0000000000000000000000000000000000000000..8dd2b97a245dfa19935fe124fdd1c03cba787401 --- /dev/null +++ b/EcoSmart/Presentation/obj/Presentation.csproj.nuget.g.props @@ -0,0 +1,16 @@ + + + + True + NuGet + $(MSBuildThisFileDirectory)project.assets.json + $(UserProfile)\.nuget\packages\ + C:\Users\Utente\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages + PackageReference + 6.14.1 + + + + + + \ No newline at end of file diff --git a/EcoSmart/Presentation/obj/Presentation.csproj.nuget.g.targets b/EcoSmart/Presentation/obj/Presentation.csproj.nuget.g.targets new file mode 100644 index 0000000000000000000000000000000000000000..3dc06ef3cc4057524bf5d2cd49936dff789cebe8 --- /dev/null +++ b/EcoSmart/Presentation/obj/Presentation.csproj.nuget.g.targets @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/EcoSmart/Presentation/obj/project.assets.json b/EcoSmart/Presentation/obj/project.assets.json new file mode 100644 index 0000000000000000000000000000000000000000..bc1b6622b7eceb6d3115d1b13dc1507654a5b7c7 --- /dev/null +++ b/EcoSmart/Presentation/obj/project.assets.json @@ -0,0 +1,143 @@ +{ + "version": 3, + "targets": { + "net8.0": { + "Application/1.0.0": { + "type": "project", + "framework": ".NETCoreApp,Version=v8.0", + "dependencies": { + "Domain": "1.0.0" + }, + "compile": { + "bin/placeholder/Application.dll": {} + }, + "runtime": { + "bin/placeholder/Application.dll": {} + } + }, + "Domain/1.0.0": { + "type": "project", + "framework": ".NETCoreApp,Version=v8.0", + "compile": { + "bin/placeholder/Domain.dll": {} + }, + "runtime": { + "bin/placeholder/Domain.dll": {} + } + }, + "Infrastructure/1.0.0": { + "type": "project", + "framework": ".NETCoreApp,Version=v8.0", + "dependencies": { + "Application": "1.0.0" + }, + "compile": { + "bin/placeholder/Infrastructure.dll": {} + }, + "runtime": { + "bin/placeholder/Infrastructure.dll": {} + } + } + } + }, + "libraries": { + "Application/1.0.0": { + "type": "project", + "path": "../Application/Application.csproj", + "msbuildProject": "../Application/Application.csproj" + }, + "Domain/1.0.0": { + "type": "project", + "path": "../EcoSmart/Domain.csproj", + "msbuildProject": "../EcoSmart/Domain.csproj" + }, + "Infrastructure/1.0.0": { + "type": "project", + "path": "../Infrastructure/Infrastructure.csproj", + "msbuildProject": "../Infrastructure/Infrastructure.csproj" + } + }, + "projectFileDependencyGroups": { + "net8.0": [ + "Application >= 1.0.0", + "Infrastructure >= 1.0.0" + ] + }, + "packageFolders": { + "C:\\Users\\Utente\\.nuget\\packages\\": {}, + "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {} + }, + "project": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\Presentation\\Presentation.csproj", + "projectName": "Presentation", + "projectPath": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\Presentation\\Presentation.csproj", + "packagesPath": "C:\\Users\\Utente\\.nuget\\packages\\", + "outputPath": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\Presentation\\obj\\", + "projectStyle": "PackageReference", + "fallbackFolders": [ + "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages" + ], + "configFilePaths": [ + "C:\\Users\\Utente\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "net8.0" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "C:\\Program Files\\dotnet\\library-packs": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net8.0": { + "targetAlias": "net8.0", + "projectReferences": { + "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\Application\\Application.csproj": { + "projectPath": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\Application\\Application.csproj" + }, + "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\Infrastructure\\Infrastructure.csproj": { + "projectPath": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\Infrastructure\\Infrastructure.csproj" + } + } + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + }, + "restoreAuditProperties": { + "enableAudit": "true", + "auditLevel": "low", + "auditMode": "direct" + }, + "SdkAnalysisLevel": "9.0.300" + }, + "frameworks": { + "net8.0": { + "targetAlias": "net8.0", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48", + "net481" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\9.0.304/PortableRuntimeIdentifierGraph.json" + } + } + } +} \ No newline at end of file diff --git a/EcoSmart/Presentation/obj/project.nuget.cache b/EcoSmart/Presentation/obj/project.nuget.cache new file mode 100644 index 0000000000000000000000000000000000000000..b2284e6859e9d900f1ac7d97c6fc33b8549a7481 --- /dev/null +++ b/EcoSmart/Presentation/obj/project.nuget.cache @@ -0,0 +1,8 @@ +{ + "version": 2, + "dgSpecHash": "aBR8+H6MDjw=", + "success": true, + "projectFilePath": "C:\\Users\\Utente\\Desktop\\ecosmart-chiamate-asincrone-e-linq\\EcoSmart\\Presentation\\Presentation.csproj", + "expectedPackageFiles": [], + "logs": [] +} \ No newline at end of file diff --git a/EcoSmart/TestApplication/TestSensorDataMapper.cs b/EcoSmart/TestApplication/TestSensorDataMapper.cs index 8890546046dc35026e5190eed2f3b0dd87b977bb..22254b5ca938b4cacd794e219342043fae4771c7 100644 --- a/EcoSmart/TestApplication/TestSensorDataMapper.cs +++ b/EcoSmart/TestApplication/TestSensorDataMapper.cs @@ -1,5 +1,4 @@ -using EcoSmart; -using Application.Dto; +using Application.Dto; using Domain; using Application.Mapper; diff --git a/EcoSmart/TestApplication/bin/Debug/net8.0/Application.dll b/EcoSmart/TestApplication/bin/Debug/net8.0/Application.dll index d559c45e037062ca9cdff8d5f2102c1a06409d7c..3260fcb35169baa9c3ae8bc1a06c9d28a3d41909 100644 Binary files a/EcoSmart/TestApplication/bin/Debug/net8.0/Application.dll and b/EcoSmart/TestApplication/bin/Debug/net8.0/Application.dll differ diff --git a/EcoSmart/TestApplication/bin/Debug/net8.0/Application.pdb b/EcoSmart/TestApplication/bin/Debug/net8.0/Application.pdb index 45e634bc75e545f27c03267aea382208fc6b9aca..a7461debe9eb9a9a45354eaf19a31aec94c167b1 100644 Binary files a/EcoSmart/TestApplication/bin/Debug/net8.0/Application.pdb and b/EcoSmart/TestApplication/bin/Debug/net8.0/Application.pdb differ diff --git a/EcoSmart/TestApplication/bin/Debug/net8.0/Domain.dll b/EcoSmart/TestApplication/bin/Debug/net8.0/Domain.dll index de005eb7858133548a20fafc00368c0a672bdac7..a5f10ac1560f2f98543f91798ebdd17b7c44e65f 100644 Binary files a/EcoSmart/TestApplication/bin/Debug/net8.0/Domain.dll and b/EcoSmart/TestApplication/bin/Debug/net8.0/Domain.dll differ diff --git a/EcoSmart/TestApplication/bin/Debug/net8.0/Domain.pdb b/EcoSmart/TestApplication/bin/Debug/net8.0/Domain.pdb index ada7e57ef88e15a5712d5b2806b8e697b14bdec2..75fd25c6fdd009da6e0238694b3732c5140021d0 100644 Binary files a/EcoSmart/TestApplication/bin/Debug/net8.0/Domain.pdb and b/EcoSmart/TestApplication/bin/Debug/net8.0/Domain.pdb differ diff --git a/EcoSmart/TestApplication/bin/Debug/net8.0/TestApplication.dll b/EcoSmart/TestApplication/bin/Debug/net8.0/TestApplication.dll index eb199d840922786d41cafb2fc1da0a472036490c..bcaa4dbd8c9a1857d464b3dd1d43e9431f094f54 100644 Binary files a/EcoSmart/TestApplication/bin/Debug/net8.0/TestApplication.dll and b/EcoSmart/TestApplication/bin/Debug/net8.0/TestApplication.dll differ diff --git a/EcoSmart/TestApplication/bin/Debug/net8.0/TestApplication.pdb b/EcoSmart/TestApplication/bin/Debug/net8.0/TestApplication.pdb index f19bff55be7276dc040f389e92289deb59e1b81a..c15c984a38e69b43e387473407c70c792487677b 100644 Binary files a/EcoSmart/TestApplication/bin/Debug/net8.0/TestApplication.pdb and b/EcoSmart/TestApplication/bin/Debug/net8.0/TestApplication.pdb differ diff --git a/EcoSmart/TestApplication/obj/Debug/net8.0/TestApplication.AssemblyInfo.cs b/EcoSmart/TestApplication/obj/Debug/net8.0/TestApplication.AssemblyInfo.cs index b730233a7232ca379160889bc8b7a9a22e524710..3c386714567f9621c7febb505c421c77ad43cb09 100644 --- a/EcoSmart/TestApplication/obj/Debug/net8.0/TestApplication.AssemblyInfo.cs +++ b/EcoSmart/TestApplication/obj/Debug/net8.0/TestApplication.AssemblyInfo.cs @@ -14,7 +14,7 @@ using System.Reflection; [assembly: System.Reflection.AssemblyCompanyAttribute("TestApplication")] [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] -[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+60b972e5e6088abe3f62c790d2a3c64223e4aa1d")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+0194f9b45b9a1cc3a86675d5f2424e35226fe5f9")] [assembly: System.Reflection.AssemblyProductAttribute("TestApplication")] [assembly: System.Reflection.AssemblyTitleAttribute("TestApplication")] [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] diff --git a/EcoSmart/TestApplication/obj/Debug/net8.0/TestApplication.AssemblyInfoInputs.cache b/EcoSmart/TestApplication/obj/Debug/net8.0/TestApplication.AssemblyInfoInputs.cache index 9c33e15fe5a6e9f71e96d031306fd3ca1411900c..04923ab5c885fa903a83a6256271ccea47c3899a 100644 --- a/EcoSmart/TestApplication/obj/Debug/net8.0/TestApplication.AssemblyInfoInputs.cache +++ b/EcoSmart/TestApplication/obj/Debug/net8.0/TestApplication.AssemblyInfoInputs.cache @@ -1 +1 @@ -1d6d026154cde793ad24eb337f18f6781207c2c68a4df1ba5c0d1fc9aeb4dffc +df792c3d79beac651ba28100a1b209fd6fd8a81015c8924f9c7e24458a62e8bb diff --git a/EcoSmart/TestApplication/obj/Debug/net8.0/TestApplication.csproj.AssemblyReference.cache b/EcoSmart/TestApplication/obj/Debug/net8.0/TestApplication.csproj.AssemblyReference.cache index e36463d4374380b53100777b7aca6dcdd4f6802d..a24ec2dc34d31bc8218b3864f7fc1179d6b709ef 100644 Binary files a/EcoSmart/TestApplication/obj/Debug/net8.0/TestApplication.csproj.AssemblyReference.cache and b/EcoSmart/TestApplication/obj/Debug/net8.0/TestApplication.csproj.AssemblyReference.cache differ diff --git a/EcoSmart/TestApplication/obj/Debug/net8.0/TestApplication.dll b/EcoSmart/TestApplication/obj/Debug/net8.0/TestApplication.dll index eb199d840922786d41cafb2fc1da0a472036490c..bcaa4dbd8c9a1857d464b3dd1d43e9431f094f54 100644 Binary files a/EcoSmart/TestApplication/obj/Debug/net8.0/TestApplication.dll and b/EcoSmart/TestApplication/obj/Debug/net8.0/TestApplication.dll differ diff --git a/EcoSmart/TestApplication/obj/Debug/net8.0/TestApplication.pdb b/EcoSmart/TestApplication/obj/Debug/net8.0/TestApplication.pdb index f19bff55be7276dc040f389e92289deb59e1b81a..c15c984a38e69b43e387473407c70c792487677b 100644 Binary files a/EcoSmart/TestApplication/obj/Debug/net8.0/TestApplication.pdb and b/EcoSmart/TestApplication/obj/Debug/net8.0/TestApplication.pdb differ diff --git a/EcoSmart/TestApplication/obj/Debug/net8.0/ref/TestApplication.dll b/EcoSmart/TestApplication/obj/Debug/net8.0/ref/TestApplication.dll index 614ea8b1cef154a1948a52691ba84762b031e1d5..b84a48f774e6f5080487281b8d63df68107e5721 100644 Binary files a/EcoSmart/TestApplication/obj/Debug/net8.0/ref/TestApplication.dll and b/EcoSmart/TestApplication/obj/Debug/net8.0/ref/TestApplication.dll differ diff --git a/EcoSmart/TestApplication/obj/Debug/net8.0/refint/TestApplication.dll b/EcoSmart/TestApplication/obj/Debug/net8.0/refint/TestApplication.dll index 614ea8b1cef154a1948a52691ba84762b031e1d5..b84a48f774e6f5080487281b8d63df68107e5721 100644 Binary files a/EcoSmart/TestApplication/obj/Debug/net8.0/refint/TestApplication.dll and b/EcoSmart/TestApplication/obj/Debug/net8.0/refint/TestApplication.dll differ diff --git a/EcoSmart/TestDomain/TestSensorData.cs b/EcoSmart/TestDomain/TestSensorData.cs index 7814c09ff7d807937b550ecc1acef2b7d1a82521..5fc9b3e28908330b9495280a78ac071f99a275f5 100644 --- a/EcoSmart/TestDomain/TestSensorData.cs +++ b/EcoSmart/TestDomain/TestSensorData.cs @@ -1,4 +1,4 @@ -using EcoSmart; +using Domain; using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; @@ -24,18 +24,6 @@ namespace TestDomain Assert.ThrowsException(() => new SensorData("", Domain.Type.CO2, 55.7, timestamp)); } [TestMethod] - public void TestConstructor_ValueOutOfRange_ThrowArgumentOutOfRangeException() - { - DateTime timestamp = DateTime.Now; - Assert.ThrowsException(() => new SensorData("000-001", Domain.Type.CO2, 150.0, timestamp)); - } - [TestMethod] - public void TestConstructor_ValueOutOfRange2_ThrowArgumentOutOfRangeException() - { - DateTime timestamp = DateTime.Now; - Assert.ThrowsException(() => new SensorData("000-001", Domain.Type.CO2, -150.0, timestamp)); - } - [TestMethod] public void TestConstructor_TimestampInFuture_ThrowArgumentException() { DateTime timestamp = DateTime.Now.AddHours(1); diff --git a/EcoSmart/TestDomain/bin/Debug/net8.0/Domain.dll b/EcoSmart/TestDomain/bin/Debug/net8.0/Domain.dll index c50e19947cb3a47f6d00423d0fbedab79fdcdd86..a5f10ac1560f2f98543f91798ebdd17b7c44e65f 100644 Binary files a/EcoSmart/TestDomain/bin/Debug/net8.0/Domain.dll and b/EcoSmart/TestDomain/bin/Debug/net8.0/Domain.dll differ diff --git a/EcoSmart/TestDomain/bin/Debug/net8.0/Domain.pdb b/EcoSmart/TestDomain/bin/Debug/net8.0/Domain.pdb index 52dd453f34a7e3c29a0b040d24cb5641ddca7511..75fd25c6fdd009da6e0238694b3732c5140021d0 100644 Binary files a/EcoSmart/TestDomain/bin/Debug/net8.0/Domain.pdb and b/EcoSmart/TestDomain/bin/Debug/net8.0/Domain.pdb differ diff --git a/EcoSmart/TestDomain/bin/Debug/net8.0/TestDomain.dll b/EcoSmart/TestDomain/bin/Debug/net8.0/TestDomain.dll index 660a6fc8fb0d63f20d9e9b315c1f5c230488c00c..7cea7df69e30349caab2331674d5953de9cb76f1 100644 Binary files a/EcoSmart/TestDomain/bin/Debug/net8.0/TestDomain.dll and b/EcoSmart/TestDomain/bin/Debug/net8.0/TestDomain.dll differ diff --git a/EcoSmart/TestDomain/bin/Debug/net8.0/TestDomain.pdb b/EcoSmart/TestDomain/bin/Debug/net8.0/TestDomain.pdb index f085af8a9f7d9973500f95b91e09e9601c1c8a62..800f952b6e1b60c490d89edbedb024367f898a91 100644 Binary files a/EcoSmart/TestDomain/bin/Debug/net8.0/TestDomain.pdb and b/EcoSmart/TestDomain/bin/Debug/net8.0/TestDomain.pdb differ diff --git a/EcoSmart/TestDomain/obj/Debug/net8.0/TestDomain.AssemblyInfo.cs b/EcoSmart/TestDomain/obj/Debug/net8.0/TestDomain.AssemblyInfo.cs index efc248030f234558a318a10f0c6cd370470b537f..51c758437916225d8b3aba4cddf5cdc51e6afa54 100644 --- a/EcoSmart/TestDomain/obj/Debug/net8.0/TestDomain.AssemblyInfo.cs +++ b/EcoSmart/TestDomain/obj/Debug/net8.0/TestDomain.AssemblyInfo.cs @@ -14,7 +14,7 @@ using System.Reflection; [assembly: System.Reflection.AssemblyCompanyAttribute("TestDomain")] [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] -[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+60b972e5e6088abe3f62c790d2a3c64223e4aa1d")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+0194f9b45b9a1cc3a86675d5f2424e35226fe5f9")] [assembly: System.Reflection.AssemblyProductAttribute("TestDomain")] [assembly: System.Reflection.AssemblyTitleAttribute("TestDomain")] [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] diff --git a/EcoSmart/TestDomain/obj/Debug/net8.0/TestDomain.AssemblyInfoInputs.cache b/EcoSmart/TestDomain/obj/Debug/net8.0/TestDomain.AssemblyInfoInputs.cache index cb09a13a9de04f2ffdfae3ef5d0ae556a3ba3609..ffdc664270f6d0a5158b7ed7e01316bb567fc2c1 100644 --- a/EcoSmart/TestDomain/obj/Debug/net8.0/TestDomain.AssemblyInfoInputs.cache +++ b/EcoSmart/TestDomain/obj/Debug/net8.0/TestDomain.AssemblyInfoInputs.cache @@ -1 +1 @@ -648963655956d78df0729a180a785223b9b6ac6e0a487208b3180d2f027c7794 +a56ff739d5990af59ce6206586b5669197d70440ff1e87df59464795c14bfba9 diff --git a/EcoSmart/TestDomain/obj/Debug/net8.0/TestDomain.csproj.AssemblyReference.cache b/EcoSmart/TestDomain/obj/Debug/net8.0/TestDomain.csproj.AssemblyReference.cache index a16b6c3d81bbdadc12e0af91ee808aa3847bb5d9..829f120ae4c1027a436d3cf8103961e6941ebb15 100644 Binary files a/EcoSmart/TestDomain/obj/Debug/net8.0/TestDomain.csproj.AssemblyReference.cache and b/EcoSmart/TestDomain/obj/Debug/net8.0/TestDomain.csproj.AssemblyReference.cache differ diff --git a/EcoSmart/TestDomain/obj/Debug/net8.0/TestDomain.dll b/EcoSmart/TestDomain/obj/Debug/net8.0/TestDomain.dll index 660a6fc8fb0d63f20d9e9b315c1f5c230488c00c..7cea7df69e30349caab2331674d5953de9cb76f1 100644 Binary files a/EcoSmart/TestDomain/obj/Debug/net8.0/TestDomain.dll and b/EcoSmart/TestDomain/obj/Debug/net8.0/TestDomain.dll differ diff --git a/EcoSmart/TestDomain/obj/Debug/net8.0/TestDomain.pdb b/EcoSmart/TestDomain/obj/Debug/net8.0/TestDomain.pdb index f085af8a9f7d9973500f95b91e09e9601c1c8a62..800f952b6e1b60c490d89edbedb024367f898a91 100644 Binary files a/EcoSmart/TestDomain/obj/Debug/net8.0/TestDomain.pdb and b/EcoSmart/TestDomain/obj/Debug/net8.0/TestDomain.pdb differ diff --git a/EcoSmart/TestDomain/obj/Debug/net8.0/ref/TestDomain.dll b/EcoSmart/TestDomain/obj/Debug/net8.0/ref/TestDomain.dll index 90d1e4b0746b587dfb5a0e866ea79a4aae246af5..b737fffcc3df7ea9bf236302b5d743765dd4eb2f 100644 Binary files a/EcoSmart/TestDomain/obj/Debug/net8.0/ref/TestDomain.dll and b/EcoSmart/TestDomain/obj/Debug/net8.0/ref/TestDomain.dll differ diff --git a/EcoSmart/TestDomain/obj/Debug/net8.0/refint/TestDomain.dll b/EcoSmart/TestDomain/obj/Debug/net8.0/refint/TestDomain.dll index 90d1e4b0746b587dfb5a0e866ea79a4aae246af5..b737fffcc3df7ea9bf236302b5d743765dd4eb2f 100644 Binary files a/EcoSmart/TestDomain/obj/Debug/net8.0/refint/TestDomain.dll and b/EcoSmart/TestDomain/obj/Debug/net8.0/refint/TestDomain.dll differ