Skip to content

Commit

Permalink
grouping global usings in following projects
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasdaquina committed Jul 26, 2024
1 parent f961d87 commit 9a7b0bd
Show file tree
Hide file tree
Showing 12 changed files with 6 additions and 14 deletions.
1 change: 1 addition & 0 deletions src/SM.Medication.Application/GlobalUsings.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
global using SM.Medication.Domain.DTO;
3 changes: 1 addition & 2 deletions src/SM.Medication.Application/Handlers/MedicationHandler.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using MapsterMapper;
using SM.Medication.Application.Interfaces;
using SM.Medication.Domain.DTO;
using SM.Medication.Domain.Interfaces;

namespace SM.Medication.Application.Handlers;
Expand All @@ -12,6 +11,6 @@ public class MedicationHandler(
public async Task<List<MedicationDTO>> Handle()
{
var medications = await medicationRepository.GetAll();
return mapper.Map<List<MedicationDTO>>(medications);
return mapper.Map<List<MedicationDTO>>(medications);
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using SM.Medication.Domain.DTO;

namespace SM.Medication.Application.Interfaces;
public interface IMedicationHandler
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using Microsoft.AspNetCore.Http;
namespace SM.Medication.Auth.Extensions;

public static class SmartMedAuthExtensions
Expand Down
2 changes: 2 additions & 0 deletions src/SM.Medication.Auth/GlobalUsings.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
global using Microsoft.AspNetCore.Authentication;
global using Microsoft.AspNetCore.Http;
2 changes: 0 additions & 2 deletions src/SM.Medication.Auth/Options/SMAuthSchemeOptions.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using Microsoft.AspNetCore.Authentication;

namespace SM.Medication.Auth.Options;
public class SMAuthSchemeOptions : AuthenticationSchemeOptions
{
Expand Down
2 changes: 0 additions & 2 deletions src/SM.Medication.Auth/SmartMedAuthenticationHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
using System.Text.Encodings.Web;
using System.Text.Json;
using System.Text.RegularExpressions;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using Microsoft.Extensions.Primitives;
Expand Down
2 changes: 2 additions & 0 deletions src/SM.Medication.Infrastructure/GlobalUsings.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
global using Microsoft.EntityFrameworkCore;
global using Microsoft.EntityFrameworkCore.Infrastructure;
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace SM.Medication.Infrastructure.Mapping;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage;

namespace SM.Medication.Infrastructure.Persistence;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using Microsoft.EntityFrameworkCore;
using SM.Medication.Domain.Interfaces;
using SM.Medication.Infrastructure.Persistence;

Expand Down

0 comments on commit 9a7b0bd

Please sign in to comment.