Skip to content

Commit

Permalink
Merge branch 'master' into trygetvalue
Browse files Browse the repository at this point in the history
  • Loading branch information
imnasnainaec authored Jun 5, 2024
2 parents d3c25cb + c6f2191 commit 119e4ff
Show file tree
Hide file tree
Showing 17 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion Backend.Tests/Controllers/LiftControllerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ public void TestRoundtrip(RoundTripObj roundTripObj)
}
}

private class MockLogger : ILogger<LiftController>
private sealed class MockLogger : ILogger<LiftController>
{
public IDisposable BeginScope<TState>(TState state)
{
Expand Down
2 changes: 1 addition & 1 deletion Backend.Tests/Mocks/BannerRepositoryMock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace Backend.Tests.Mocks
{
public class BannerRepositoryMock : IBannerRepository
sealed internal class BannerRepositoryMock : IBannerRepository
{
private Dictionary<BannerType, Banner> _banners;

Expand Down
2 changes: 1 addition & 1 deletion Backend.Tests/Mocks/EmailServiceMock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Backend.Tests.Mocks
{
internal class EmailServiceMock : IEmailService
sealed internal class EmailServiceMock : IEmailService
{
public Task<bool> SendEmail(MimeMessage msg)
{
Expand Down
6 changes: 3 additions & 3 deletions Backend.Tests/Mocks/HubContextMock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ namespace Backend.Tests.Mocks
/// <summary>
/// A *very* sparse, mostly unimplemented Mock of SignalR HubContext.
/// </summary>
public class HubContextMock : IHubContext<CombineHub>
sealed internal class HubContextMock : IHubContext<CombineHub>
{
public IHubClients Clients => new HubClientsMock();

public IGroupManager Groups => throw new System.NotImplementedException();
}

public class HubClientsMock : IHubClients
sealed internal class HubClientsMock : IHubClients
{
public IClientProxy AllExcept(IReadOnlyList<string> excludedConnectionIds)
{
Expand Down Expand Up @@ -61,7 +61,7 @@ public IClientProxy Users(IReadOnlyList<string> userIds)
public IClientProxy All => new ClientProxyMock();
}

public class ClientProxyMock : IClientProxy
sealed internal class ClientProxyMock : IClientProxy
{
// Disable this warning as this mock simply needs to return an empty Task, not await anything.
#pragma warning disable 1998
Expand Down
2 changes: 1 addition & 1 deletion Backend.Tests/Mocks/MergeBlacklistRepositoryMock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace Backend.Tests.Mocks
{
public class MergeBlacklistRepositoryMock : IMergeBlacklistRepository
sealed internal class MergeBlacklistRepositoryMock : IMergeBlacklistRepository
{
private readonly List<MergeWordSet> _mergeBlacklist;

Expand Down
2 changes: 1 addition & 1 deletion Backend.Tests/Mocks/MergeGraylistRepositoryMock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace Backend.Tests.Mocks
{
public class MergeGraylistRepositoryMock : IMergeGraylistRepository
sealed internal class MergeGraylistRepositoryMock : IMergeGraylistRepository
{
private readonly List<MergeWordSet> _mergeGraylist;

Expand Down
2 changes: 1 addition & 1 deletion Backend.Tests/Mocks/PasswordResetContextMock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace Backend.Tests.Mocks
{
public class PasswordResetContextMock : IPasswordResetContext
sealed internal class PasswordResetContextMock : IPasswordResetContext
{
private List<PasswordReset> _resets;

Expand Down
2 changes: 1 addition & 1 deletion Backend.Tests/Mocks/PasswordResetServiceMock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Backend.Tests.Mocks
{
internal class PasswordResetServiceMock : IPasswordResetService
sealed internal class PasswordResetServiceMock : IPasswordResetService
{
public Task<PasswordReset> CreatePasswordReset(string email)
{
Expand Down
4 changes: 2 additions & 2 deletions Backend.Tests/Mocks/PermissionServiceMock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace Backend.Tests.Mocks
{
internal class PermissionServiceMock : IPermissionService
sealed internal class PermissionServiceMock : IPermissionService
{
private readonly IUserRepository _userRepo;
private const string NoHttpContextAvailable = "NO_HTTP_CONTEXT_AVAILABLE";
Expand Down Expand Up @@ -157,7 +157,7 @@ public string GetUserId(HttpContext? request)
}

[Serializable]
public class UserAuthenticationException : Exception
internal class UserAuthenticationException : Exception
{
public UserAuthenticationException() { }

Expand Down
2 changes: 1 addition & 1 deletion Backend.Tests/Mocks/ProjectRepositoryMock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

namespace Backend.Tests.Mocks
{
public class ProjectRepositoryMock : IProjectRepository
sealed internal class ProjectRepositoryMock : IProjectRepository
{
private readonly List<Project> _projects;

Expand Down
2 changes: 1 addition & 1 deletion Backend.Tests/Mocks/SemanticDomainRepositoryMock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace Backend.Tests.Mocks
{
public class SemanticDomainRepositoryMock : ISemanticDomainRepository
sealed internal class SemanticDomainRepositoryMock : ISemanticDomainRepository
{
private object? _responseObj;

Expand Down
2 changes: 1 addition & 1 deletion Backend.Tests/Mocks/SpeakerRepositoryMock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace Backend.Tests.Mocks
{
public class SpeakerRepositoryMock : ISpeakerRepository
sealed internal class SpeakerRepositoryMock : ISpeakerRepository
{
private readonly List<Speaker> _speakers;

Expand Down
2 changes: 1 addition & 1 deletion Backend.Tests/Mocks/StatisticsServiceMock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace Backend.Tests.Mocks
{
internal class StatisticsServiceMock : IStatisticsService
sealed internal class StatisticsServiceMock : IStatisticsService
{
public Task<List<SemanticDomainCount>> GetSemanticDomainCounts(string projectId, string lang)
{
Expand Down
2 changes: 1 addition & 1 deletion Backend.Tests/Mocks/UserEditRepositoryMock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace Backend.Tests.Mocks
{
public class UserEditRepositoryMock : IUserEditRepository
sealed internal class UserEditRepositoryMock : IUserEditRepository
{
private readonly List<UserEdit> _userEdits;

Expand Down
4 changes: 2 additions & 2 deletions Backend.Tests/Mocks/UserRepositoryMock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

namespace Backend.Tests.Mocks
{
public class UserRepositoryMock : IUserRepository
sealed internal class UserRepositoryMock : IUserRepository
{
private readonly List<User> _users;

Expand Down Expand Up @@ -103,7 +103,7 @@ public Task<ResultOfUpdate> ChangePassword(string userId, string password)
}

[Serializable]
public class UserCreationException : Exception
internal class UserCreationException : Exception
{
public UserCreationException() { }

Expand Down
2 changes: 1 addition & 1 deletion Backend.Tests/Mocks/UserRoleRepositoryMock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace Backend.Tests.Mocks
{
public class UserRoleRepositoryMock : IUserRoleRepository
sealed internal class UserRoleRepositoryMock : IUserRoleRepository
{
private readonly List<UserRole> _userRoles;

Expand Down
2 changes: 1 addition & 1 deletion Backend.Tests/Mocks/WordRepositoryMock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace Backend.Tests.Mocks
{
public class WordRepositoryMock : IWordRepository
sealed internal class WordRepositoryMock : IWordRepository
{
private readonly List<Word> _words;
private readonly List<Word> _frontier;
Expand Down

0 comments on commit 119e4ff

Please sign in to comment.