public UserCommandController(UserModifier modifier, UserRemoverForDevUse userRemoverForDev)
        {
            this.modifier          = modifier;
            this.userRemoverForDev = userRemoverForDev;

            var configuration = new MapperConfiguration(cfg =>
            {
                cfg.CreateMap <UserModifyRequest, UserVoRequest>();
                cfg.CreateMap <UserLevelModifyRequest, UserLevelModifyVoRequest>();
            });

            this.mapper = configuration.CreateMapper();
        }
Esempio n. 2
0
 public UserRegistrator()
 {
     _userRepository = new UserRepository();
     _userModifier   = new UserModifier();
 }