コード例 #1
0
 public UpsertUserServiceTest()
 {
     _department        = A.Fake <IDepartmentRepository>();
     _category          = A.Fake <ICategoryRepository>();
     _position          = A.Fake <IPositionRepository>();
     _positionLevel     = A.Fake <IPositionLevelRepository>();
     _role              = A.Fake <IRoleRepository>();
     _upsertUserService = new UpsertUserService(_department, _category, _position, _positionLevel, _role);
 }
コード例 #2
0
 public UserController(IUserService service, IUpsertUserService upsertUserService)
 {
     _service           = service ?? throw new ArgumentNullException();
     _upsertUserService = upsertUserService ?? throw new ArgumentNullException();
 }