コード例 #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
ファイル: UnitOfWork.cs プロジェクト: PunishedJohbi/bot2
 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;
 }
コード例 #9
0
        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
ファイル: GetUserQuery.cs プロジェクト: pdziarmaga/millennium
 public GetUserQuery(long userId, IInMemoryRepository repo)
 {
     UserId = userId;
     _repository = repo;
 }
コード例 #15
0
 public CategoryManagerController(IInMemoryRepository <ProductCategory> pc)
 {
     context = pc;
 }
コード例 #16
0
 public BooksController(IInMemoryRepository bookItems)
 {
     BookItems = bookItems;
 }
コード例 #17
0
 public DiffResultRepository(IInMemoryRepository inMemoryRepository)
 {
     _inMemoryRepository = inMemoryRepository;
 }
コード例 #18
0
 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;
 }
コード例 #22
0
 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;
 }