public RegistrationHandler(IMessage message, RegistrationCache registrationCache, ILineNotifySubscription lineNotifySubscription) { _message = message; _registrationCache = registrationCache; _lineNotifySubscription = lineNotifySubscription; }
public void Setup() { _message = Substitute.For <IMessage>(); _lineNotifySubscription = Substitute.For <ILineNotifySubscription>(); _registrationCache = new RegistrationCache(); _registrationHandler = new StubRegistrationHandler(_message, _registrationCache, _lineNotifySubscription); _lineNotifySubscription.GenerateLink(Arg.Any <string>()).Returns(_link); }
public StubRegistrationHandler(IMessage message, RegistrationCache registrationCache, ILineNotifySubscription lineNotifySubscription) : base(message, registrationCache, lineNotifySubscription) { }