public void Initialize() { _registrationRepository = new Mock <ISerialRegistrationRepository>(); _serialRepository = new Mock <ISerialRepository>(); _sut = new SerialRegistrationValidator(_registrationRepository.Object, _serialRepository.Object); }
public void Init() { _ormSettings = new OrmSettings(new AcmeSettings(ConnectionString)); DataConnection.DefaultSettings = _ormSettings; var validator = new SerialRegistrationValidator(new SerialRegistrationRepository(), new SerialRepository()); _sut = new ValidationController(validator); }
public void Init() { _registeredSerials = new List <Serial>(); _ormSettings = new OrmSettings(new AcmeSettings(ConnectionString)); DataConnection.DefaultSettings = _ormSettings; var validator = new SerialRegistrationValidator(new SerialRegistrationRepository(), new SerialRepository()); var serialregistrationRepository = new SerialRegistrationRepository(); _sut = new RegistrationController(validator, serialregistrationRepository); }