refactor (readonly for static objects in tests and file-scoped namespaces
This commit is contained in:
		| @@ -3,17 +3,16 @@ using BlazorWebAssemblyVisaApiClient.Validation.Applicants.Models; | ||||
| using VisaApiClient; | ||||
| using PlaceOfWorkModel = BlazorWebAssemblyVisaApiClient.Validation.Applicants.Models.PlaceOfWorkModel; | ||||
|  | ||||
| namespace BlazorWebAssemblyVisaApiClient.Infrastructure.AutoMapper.Profiles | ||||
| namespace BlazorWebAssemblyVisaApiClient.Infrastructure.AutoMapper.Profiles; | ||||
|  | ||||
| public class RegisterApplicantRequestProfile : Profile | ||||
| { | ||||
|     public class RegisterApplicantRequestProfile : Profile | ||||
|     public RegisterApplicantRequestProfile() | ||||
|     { | ||||
|         public RegisterApplicantRequestProfile() | ||||
|         { | ||||
|             CreateMap<RegisterApplicantRequestModel, RegisterApplicantRequest>(MemberList.Destination); | ||||
|  | ||||
|             CreateMap<RegisterRequestModel, RegisterRequest>(MemberList.Destination); | ||||
|  | ||||
|             CreateMap<PlaceOfWorkModel, VisaApiClient.PlaceOfWorkModel>(MemberList.Destination); | ||||
|         } | ||||
|     } | ||||
| } | ||||
| } | ||||
| @@ -2,13 +2,12 @@ | ||||
| using BlazorWebAssemblyVisaApiClient.Validation.VisaApplications.Models; | ||||
| using VisaApiClient; | ||||
|  | ||||
| namespace BlazorWebAssemblyVisaApiClient.Infrastructure.AutoMapper.Profiles | ||||
| namespace BlazorWebAssemblyVisaApiClient.Infrastructure.AutoMapper.Profiles; | ||||
|  | ||||
| public class VisaApplicationCreateRequestProfile : Profile | ||||
| { | ||||
|     public class VisaApplicationCreateRequestProfile : Profile | ||||
|     public VisaApplicationCreateRequestProfile() | ||||
|     { | ||||
|         public VisaApplicationCreateRequestProfile() | ||||
|         { | ||||
|             CreateMap<VisaApplicationCreateRequestModel, VisaApplicationCreateRequest>(MemberList.Destination); | ||||
|         } | ||||
|     } | ||||
| } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user