public BinderFactory( IHasher hasher, IBinderRepository binderRepository, IActiveRackService activeRackServices ) { _hasher = hasher; _binderRepository = binderRepository; _activeRackServices = activeRackServices; }
public IBinderRepository CreateTestBinderRepository() { IBinderRepository repository = Substitute.For <IBinderRepository>(); var testBinder = new Binder() { }; repository.Get(Arg.Any <string>()).Returns(testBinder); return(repository); }
public BinderFactory CreateTestBinder() { CoreTestData ctd = new(); IHasher hasher = ctd.CreateTestHasher(); IBinderRepository binderRepository = CreateTestBinderRepository(); IActiveRackService currentDatabaseInfoProvider = ctd.CreateTestCurrentDatabaseInfoProvider(); BinderFactory binder = new(hasher, binderRepository, currentDatabaseInfoProvider); return(binder); }
public BindersController(IBinderRepository db) { this.db = db; }