diff --git a/Streetcode/Streetcode.XUnitTest/BLL/MediatR/StreetCode/Text/GetAllTextsHandlerTests.cs b/Streetcode/Streetcode.XUnitTest/BLL/MediatR/StreetCode/Text/GetAllTextsHandlerTests.cs
new file mode 100644
index 0000000..753b913
--- /dev/null
+++ b/Streetcode/Streetcode.XUnitTest/BLL/MediatR/StreetCode/Text/GetAllTextsHandlerTests.cs
@@ -0,0 +1,149 @@
+//
+// Copyright (c) PlaceholderCompany. All rights reserved.
+//
+
+namespace Streetcode.XUnitTest.BLL.MediatR.StreetCode.Text
+{
+ using System.Linq.Expressions;
+ using AutoMapper;
+ using FluentAssertions;
+ using Microsoft.EntityFrameworkCore.Query;
+ using Moq;
+ using Streetcode.BLL.DTO.Streetcode.TextContent.Text;
+ using Streetcode.BLL.Interfaces.Logging;
+ using Streetcode.BLL.Mapping.Streetcode.TextContent;
+ using Streetcode.BLL.MediatR.Streetcode.Text.GetAll;
+ using Streetcode.DAL.Repositories.Interfaces.Base;
+ using Streetcode.DAL.Repositories.Interfaces.Streetcode.TextContent;
+ using Xunit;
+ using TextEntity = Streetcode.DAL.Entities.Streetcode.TextContent.Text;
+
+ ///
+ /// Unit tests for .
+ ///
+ public class GetAllTextsHandlerTests
+ {
+ private readonly Mock repositoryWrapperMock;
+ private readonly Mock textRepositoryMock;
+ private readonly IMapper mapper;
+ private readonly Mock loggerMock;
+ private readonly GetAllTextsHandler handler;
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public GetAllTextsHandlerTests()
+ {
+ this.repositoryWrapperMock = new Mock();
+ this.textRepositoryMock = new Mock();
+ this.mapper = new MapperConfiguration(cfg => cfg.AddProfile()).CreateMapper();
+ this.loggerMock = new Mock();
+
+ this.repositoryWrapperMock
+ .Setup(w => w.TextRepository)
+ .Returns(this.textRepositoryMock.Object);
+
+ this.handler = new GetAllTextsHandler(
+ this.repositoryWrapperMock.Object,
+ this.mapper,
+ this.loggerMock.Object);
+ }
+
+ ///
+ /// Tests that the Handle method returns all texts when they exist in the repository.
+ ///
+ /// A representing the result of the asynchronous operation.
+ [Fact]
+ public async Task Handle_ReturnsAllTexts_WhenTextsExist()
+ {
+ // Arrange
+ var query = new GetAllTextsQuery();
+
+ var texts = new List
+ {
+ new TextEntity { Id = 1, Title = "Title 1", TextContent = "Content 1", StreetcodeId = 1 },
+ new TextEntity { Id = 2, Title = "Title 2", TextContent = "Content 2", StreetcodeId = 2 },
+ };
+
+ var textDtos = new List
+ {
+ new TextDTO { Id = 1, Title = "Title 1", TextContent = "Content 1", StreetcodeId = 1 },
+ new TextDTO { Id = 2, Title = "Title 2", TextContent = "Content 2", StreetcodeId = 2 },
+ };
+
+ this.textRepositoryMock
+ .Setup(repo => repo.GetAllAsync(
+ It.IsAny>>(),
+ It.IsAny, IIncludableQueryable>?>()))
+ .ReturnsAsync(texts);
+
+ // Act
+ var result = await this.handler.Handle(query, CancellationToken.None);
+
+ // Assert
+ result.IsSuccess.Should().BeTrue();
+ result.Value.Should().BeEquivalentTo(textDtos);
+
+ this.loggerMock.Verify(
+ l => l.LogError(It.IsAny