public void Init() { _userRepository = new Mock <IUserRepository>(); _service = new MyService(_userRepository.Object); }
public void SetUp() { MyService.Initialize(); }
public void Init() { _userRepository = Substitute.For <IUserRepository>(); _service = new MyService(_userRepository); }