예제 #1
0
 public DeleteUserCommand(
     long userId,
     IInMemoryRepository repo)
 {
     UserId      = userId;
     _repository = repo;
 }
예제 #2
0
 public UsersController(
     IInMemoryRepository repository,
     ILogger <UsersController> logger)
 {
     _repository = repository;
     _logger     = logger;
 }
예제 #3
0
 public QueryCarBrand(IInMemoryRepository anInMemoryRepository)
 {
     Name = "QueryCarBrand";
     Field <ListGraphType <CarBrandGraphType> >(
         "carbrands",
         Description = "a description",
         resolve: (context) => anInMemoryRepository.GetAllCarBrandAndModels());
 }
예제 #4
0
        public ContactListViewModel(IEventAggregator eventAggregator, IInMemoryRepository <Contact> contactsRepo)
        {
            _eventAggregator = eventAggregator;
            _contactsRepo    = contactsRepo;
            Contacts         = new ObservableCollection <Contact>(_contactsRepo.Get());

            Call = new DelegateCommand <Contact>(DoCall);
        }
예제 #5
0
 public CreateUserCommand(
     UserDto user,
     IInMemoryRepository repo,
     ILogger logger)
 {
     User        = user;
     _repository = repo;
     _logger     = logger;
 }
예제 #6
0
 public UpdateUserCommand(
     long userId,
     UserDto user,
     IInMemoryRepository repo)
 {
     UserId      = userId;
     User        = user;
     _repository = repo;
 }
예제 #7
0
 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;
 }
예제 #8
0
 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);
        }
예제 #10
0
 public void Setup()
 {
     _inMemoryRepository = new InMemoryRepository();
 }
예제 #11
0
 public GenresController(IInMemoryRepository inMemoryRepository, ILogger <GenresController> logger)
 {
     _inMemoryRepository = inMemoryRepository;
     _logger             = logger;
 }
예제 #12
0
 public InMemoryUnitOfWork(IInMemoryRepository <TEntity, TKey> inMemoryRepository, InMemoryDatabase context)
 {
     this.Repository = inMemoryRepository;
     this.Database   = context;
 }
예제 #13
0
 public BookService(IInMemoryRepository iInMemoryRepository)
 {
     this.iInMemoryRepository = iInMemoryRepository;
 }
예제 #14
0
 public GetUserQuery(long userId, IInMemoryRepository repo)
 {
     UserId = userId;
     _repository = repo;
 }
예제 #15
0
 public CategoryManagerController(IInMemoryRepository <ProductCategory> pc)
 {
     context = pc;
 }
 public BooksController(IInMemoryRepository bookItems)
 {
     BookItems = bookItems;
 }
예제 #17
0
 public DiffResultRepository(IInMemoryRepository inMemoryRepository)
 {
     _inMemoryRepository = inMemoryRepository;
 }
 public ProductCategoryMangerController(IInMemoryRepository <ProductCategeory> context)
 {
     this.context = context;
 }
예제 #19
0
 public DataAccessLayer(IInMemoryRepository repo)
 {
     Repository = repo;
 }
예제 #20
0
 public UserOrderController(IInMemoryRepository <UserOrders> rUserOrders, ILoginUserProvider loginUserProvider)
 {
     _rUserOrders       = rUserOrders;
     _loginUserProvider = loginUserProvider;
 }
예제 #21
0
 public ProductMangerController(IInMemoryRepository <Product> productContext, IInMemoryRepository <ProductCategeory> productCategoryContext)
 {
     context           = productContext;
     productcategories = productCategoryContext;
 }
 public ActivityController(IActivityRepo activityRepo, IInMemoryRepository <ActivityInfo> rActivityInfo)
 {
     _activityRepo  = activityRepo;
     _rActivityInfo = rActivityInfo;
 }
예제 #23
0
 public ProductManagerController(IInMemoryRepository <Product> p, IInMemoryRepository <ProductCategory> pc)
 {
     context            = p;
     categoryRepository = pc;
 }