public LibraryService(IBookRepository bookRepository, IBookValidator bookValidator, IPersonRepository personRepository, IPersonValidator personValidator)
 {
     _bookRepository   = bookRepository;
     _bookValidator    = bookValidator;
     _personRepository = personRepository;
     _personValidator  = personValidator;
 }
示例#2
0
        public void Setup()
        {
            _booksValidatorFake = A.Fake <IBookValidator>();
            _booksMapperFake    = A.Fake <IBookMapper>();

            _booksParser = new SimpleBookParser(_booksValidatorFake, _booksMapperFake);
        }
示例#3
0
 public BookLogic(IBookDAO bookDAO, IBookValidator bookValidator, ILogger logger)
 {
     this.logger        = logger;
     this.bookDAO       = bookDAO;
     this.bookValidator = bookValidator;
 }
示例#4
0
 public BookService(IBookRepository bookRepository, IBookValidator bookValidator)
 {
     _bookRepository = bookRepository;
     _bookValidator  = bookValidator;
 }
 public void Setup()
 {
     _loggerFake    = A.Fake <ILogger>();
     _bookValidator = new SimpleBookValidator(_loggerFake);
 }
示例#6
0
 public BookService(IMapper map, IBookValidator validator, IBookRepository repo)
 {
     mapper = map;
     bookValidator = validator;
     repository = repo;
 }
 public SimpleBookParser(IBookValidator bookValidator, IBookMapper bookMapper)
 {
     _bookValidator = bookValidator;
     _bookMapper    = bookMapper;
 }
 public void Initialise()
 {
     this.vld = new BookValidator();
 }