public void Init() { _mockLogger = Substitute.For <ILoggerExt>(); _mockRepo = Substitute.For <IRepository <Employee> >(); _sut = new EmployeeService(_mockRepo, _mockLogger); }
public void Init() { _fakeDbWrapper = Substitute.For <INoSqlWrapper>(); _fakeCollection = Substitute.For <ICollectionWrapper <TestEntity> >(); _dummyLogger = Substitute.For <ILoggerExt>(); _sut = new NoSqlRepository <TestEntity>(_fakeDbWrapper, _dummyLogger); }
/// <summary> /// Constructor /// </summary> /// <param name="wrapper">Lite DB Wrapper object</param> public NoSqlRepository(INoSqlWrapper wrapper, ILoggerExt logger) { _dbWrapper = wrapper; _logger = logger; }
public void Init() { _mockLogger = Substitute.For <ILoggerExt>(); _sut = new LoggerService(_mockLogger); }
/// <summary> /// Constructor /// </summary> /// <param name="logger">Logger for current class</param> public LoggerService(ILoggerExt logger) { _logger = logger; }
/// <summary> /// Constructor /// </summary> /// <param name="employeeRepo">Employees repository</param> /// <param name="logger">Logger for current class</param> public EmployeeService(IRepository <Employee> employeeRepo, ILoggerExt logger) { _employeeRepository = employeeRepo; _logger = logger; }