public DeleteUserCommand( long userId, IInMemoryRepository repo) { UserId = userId; _repository = repo; }
public UsersController( IInMemoryRepository repository, ILogger <UsersController> logger) { _repository = repository; _logger = logger; }
public QueryCarBrand(IInMemoryRepository anInMemoryRepository) { Name = "QueryCarBrand"; Field <ListGraphType <CarBrandGraphType> >( "carbrands", Description = "a description", resolve: (context) => anInMemoryRepository.GetAllCarBrandAndModels()); }
public ContactListViewModel(IEventAggregator eventAggregator, IInMemoryRepository <Contact> contactsRepo) { _eventAggregator = eventAggregator; _contactsRepo = contactsRepo; Contacts = new ObservableCollection <Contact>(_contactsRepo.Get()); Call = new DelegateCommand <Contact>(DoCall); }
public CreateUserCommand( UserDto user, IInMemoryRepository repo, ILogger logger) { User = user; _repository = repo; _logger = logger; }
public UpdateUserCommand( long userId, UserDto user, IInMemoryRepository repo) { UserId = userId; User = user; _repository = repo; }
public UnitOfWork(IBotDbContext context, IInMemoryRepository inMemoryRepository) { _context = context; StateIntegers = new StateIntegerRepository(_context.StateIntegers); AutoPunishments = new AutoPunishmentRepository(_context.AutoPunishments); PunishedUsers = new PunishedUserRepository(_context.PunishedUsers, _context.AutoPunishments); CustomCommand = new CustomCommandRepository(_context.CustomCommands); PeriodicMessages = new PeriodicMessageRepository(_context.PeriodicMessages); InMemory = inMemoryRepository; }
public UserRefundController(IInMemoryRepository <UserRefund> rUserRefund, IInMemoryRepository <AuditRecord> rAuditRecord, IInMemoryRepository <UserOrders> rUserOrders, IInMemoryRepository <UserInfo> rUserInfo, IInMemoryRepository <ActivityInfo> rActivityInfo, ILoginUserProvider loginUserProvider) { _rUserRefund = rUserRefund; _rAuditRecord = rAuditRecord; _rUserOrders = rUserOrders; _rUserInfo = rUserInfo; _rActivityInfo = rActivityInfo; _loginUserProvider = loginUserProvider; }
public ContactManagementViewModel(IEventAggregator eventAggregator, IInMemoryRepository <Contact> contactsRepo) { _eventAggregator = eventAggregator; _contactsRepo = contactsRepo; SaveNew = new DelegateCommand(SaveNewHandler, CanSave) .ObservesProperty(() => FirstName) .ObservesProperty(() => LastName) .ObservesProperty(() => PhoneNumber); }
public void Setup() { _inMemoryRepository = new InMemoryRepository(); }
public GenresController(IInMemoryRepository inMemoryRepository, ILogger <GenresController> logger) { _inMemoryRepository = inMemoryRepository; _logger = logger; }
public InMemoryUnitOfWork(IInMemoryRepository <TEntity, TKey> inMemoryRepository, InMemoryDatabase context) { this.Repository = inMemoryRepository; this.Database = context; }
public BookService(IInMemoryRepository iInMemoryRepository) { this.iInMemoryRepository = iInMemoryRepository; }
public GetUserQuery(long userId, IInMemoryRepository repo) { UserId = userId; _repository = repo; }
public CategoryManagerController(IInMemoryRepository <ProductCategory> pc) { context = pc; }
public BooksController(IInMemoryRepository bookItems) { BookItems = bookItems; }
public DiffResultRepository(IInMemoryRepository inMemoryRepository) { _inMemoryRepository = inMemoryRepository; }
public ProductCategoryMangerController(IInMemoryRepository <ProductCategeory> context) { this.context = context; }
public DataAccessLayer(IInMemoryRepository repo) { Repository = repo; }
public UserOrderController(IInMemoryRepository <UserOrders> rUserOrders, ILoginUserProvider loginUserProvider) { _rUserOrders = rUserOrders; _loginUserProvider = loginUserProvider; }
public ProductMangerController(IInMemoryRepository <Product> productContext, IInMemoryRepository <ProductCategeory> productCategoryContext) { context = productContext; productcategories = productCategoryContext; }
public ActivityController(IActivityRepo activityRepo, IInMemoryRepository <ActivityInfo> rActivityInfo) { _activityRepo = activityRepo; _rActivityInfo = rActivityInfo; }
public ProductManagerController(IInMemoryRepository <Product> p, IInMemoryRepository <ProductCategory> pc) { context = p; categoryRepository = pc; }