mirror of
https://github.com/Govor-team/Govor.git
synced 2026-07-22 20:24:55 +00:00
Created SessionController and UserSessionReader
+ tests for UserSessionReader
This commit is contained in:
@@ -87,6 +87,8 @@ public static class ConfigurationProgramExtensions
|
||||
services.AddAutoMapper(typeof(MappingProfile));
|
||||
|
||||
services.AddScoped<IHubUserAccessor, HubUserAccessor>();
|
||||
|
||||
services.AddScoped<IUserSessionReader, UserSessionReader>();
|
||||
}
|
||||
|
||||
public static void AddRepositories(this IServiceCollection services)
|
||||
|
||||
@@ -21,5 +21,7 @@ public class MappingProfile : Profile
|
||||
.AfterMap<UserToUserDtoMappingAction>();
|
||||
|
||||
CreateMap<Friendship, FriendshipDto>();
|
||||
|
||||
CreateMap<UserSession, SessionDto>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user