public SearchRepository(IDatabaseWrapper dbWrapper, IContext context, IContactsRepository contactsRepository, IProposalsRepository proposalsRepository)
 {
     _dbWrapper           = dbWrapper;
     _context             = context;
     _contactsRepository  = contactsRepository;
     _proposalsRepository = proposalsRepository;
 }
        public ProposalsTests()
        {
            // Add the service you want to add like _serviceCollection.AddSingleton<IEncrypt, EncryptDecryptAES>();
            _serviceCollection.AddScoped <IProposalsRepository, ProposalsRepository>();

            // Build the service
            _serviceProvider     = _serviceCollection.BuildServiceProvider();
            _proposalsRepository = (IProposalsRepository)_serviceProvider.GetService(typeof(IProposalsRepository));

            // Modify the mock object in case needed like  _mockContext.Object.Identity.UserName = "******";
            _mockContext.Object.Identity.BrokerId      = "13240190"; // user_id= [email protected]
            _mockContext.Object.Identity.InstitutionId = "6083";
        }
 public ProposalsController(IProposalsRepository usuageLogRepository, IServiceProvider serviceProvider)
 {
     _proposalsRepository = usuageLogRepository;
     _serviceProvider     = serviceProvider;
 }