Ejemplo n.º 1
0
 public BinderFactory(
     IHasher hasher,
     IBinderRepository binderRepository,
     IActiveRackService activeRackServices
     )
 {
     _hasher             = hasher;
     _binderRepository   = binderRepository;
     _activeRackServices = activeRackServices;
 }
Ejemplo n.º 2
0
        public IBinderRepository CreateTestBinderRepository()
        {
            IBinderRepository repository = Substitute.For <IBinderRepository>();
            var testBinder = new Binder()
            {
            };

            repository.Get(Arg.Any <string>()).Returns(testBinder);

            return(repository);
        }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
 public BindersController(IBinderRepository db)
 {
     this.db = db;
 }