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); }
public UserController(IUserService service, IUpsertUserService upsertUserService) { _service = service ?? throw new ArgumentNullException(); _upsertUserService = upsertUserService ?? throw new ArgumentNullException(); }