当前位置: 首页>>代码示例>>C#>>正文


C# IAccountRepository类代码示例

本文整理汇总了C#中IAccountRepository的典型用法代码示例。如果您正苦于以下问题:C# IAccountRepository类的具体用法?C# IAccountRepository怎么用?C# IAccountRepository使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


IAccountRepository类属于命名空间,在下文中一共展示了IAccountRepository类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Context

        protected override void Context()
        {
            _handler = Resolve<AccountHandlers>();
            _accountRepository = Resolve<IAccountRepository>();

            _handler.AsDynamic().Handle(new AccountCreated(_id, "John Doe BVBA", "John", "Doe", "[email protected]", DateTime.UtcNow) { Version = 1 });
        }
开发者ID:kcornelis,项目名称:FreelanceManager.NET,代码行数:7,代码来源:when_an_account_is_made_admin.cs

示例2: SetUp

 public void SetUp()
 {
     _mockRepository = new MockRepository();
     _accountRepository = _mockRepository.StrictMock<IAccountRepository>();
     _transactionsRepository = _mockRepository.StrictMock<ITransactionsRepository>();
     _paymentGateway = _mockRepository.StrictMock<IPaymentGateway>();
 }
开发者ID:olcayseker,项目名称:Logging-Interception-demo,代码行数:7,代码来源:ProcessTransactionServiceTests.cs

示例3: GetAccountRepo

        public static IAccountRepository GetAccountRepo()
        {
            if (accountRepository == null)
                accountRepository = new AccountRepository();

            return accountRepository;
        }
开发者ID:mchambers,项目名称:Daremeto,代码行数:7,代码来源:RepoFactory.cs

示例4: TransactionApp

 public TransactionApp(ITransactionRepository transactionRepository, IAccountRepository accountRepository, ICategoryRepository categoryRepository, IPropertyRepository propertyRepository)
 {
     _transactionRepository = transactionRepository;
     _accountRepository = accountRepository;
     _categoryRepository = categoryRepository;
     _propertyRepository = propertyRepository;
 }
开发者ID:essgineer,项目名称:Finance,代码行数:7,代码来源:TransactionApp.cs

示例5: BankModule

        public BankModule(ICashDispenser dispenser, IAccountRepository accountRepo)
        {
            _dispenser = dispenser;
            _accountRepo = accountRepo;

            Get["/"] = _ =>
                           {
                               return @"<html>
                                          <body>
                                            <form action='/withdraw' method='post'>
                                              <label for='accountNo'>Account no</label>
                                              <input type='text' name='accountNo' id='accountNo'>
                                              <br />
                                              <label for='amount'>Amount</label>
                                              <input type='text' name='amount' id='amount'>
                                              <br />
                                              <input type='submit' name='withdraw' id='withdraw' value='Withdraw'>
                                            </form>
                                          </body>
                                        </html>";
                           };

            Post["/withdraw"] = p =>
                                    {
                                        var vm = this.Bind<WithdrawalVM>();
                                        var account = _accountRepo.GetAccount(vm.AccountNo);
                                        var teller = new Teller(_dispenser);
                                        teller.AuthenticateAs(account);
                                        teller.Withdraw(vm.Amount);
                                        return "It's done!";
                                    };
        }
开发者ID:marcusoftnet,项目名称:BDDAsYouMeanIt,代码行数:32,代码来源:BankModule.cs

示例6: UserAccountRepository

 public UserAccountRepository(IAccountRepository repository)
 {
     if (repository != null)
         _repository = repository;
     else
         throw new ArgumentNullException();
 }
开发者ID:denismaster,项目名称:dotnet01,代码行数:7,代码来源:UserAccountRepository.cs

示例7: AccountManager

        public AccountManager(
            ISecurityProvider securityProvider,
            IAccountRepository accountRepository,
            IAccountValidator accountValidator,
            ITimeSource timeSource,
            int accountSessionCollectionCapacity,
            ISessionRepository sessionRepository,
            IActionRightResolver actionRightResolver/*,
            Func<TBizAccountRegistrationData, TBizAccount> accountRegistrationDataToAccount*/)
        {
            // todo1[ak] check args
            _securityProvider = securityProvider;
            _accountRepository = accountRepository;
            _accountValidator = accountValidator;
            _timeSource = timeSource;

            _sessionManager = new SessionManager(
                _securityProvider,
                _timeSource,
                accountSessionCollectionCapacity,
                sessionRepository);

            _actionRightResolver = actionRightResolver;
            //_accountRegistrationDataToAccount = accountRegistrationDataToAccount;
        }
开发者ID:taucode,项目名称:taucode,代码行数:25,代码来源:AccountManager.cs

示例8: FacebookAccountRepository

 public FacebookAccountRepository(IAccountRepository accountRepository,
                                  IFacebookDataRepository facebookDataRepository, IEventBus eventBus)
 {
     this.accountRepository = accountRepository;
     this.facebookDataRepository = facebookDataRepository;
     this.eventBus = eventBus;
 }
开发者ID:burkhartt,项目名称:Jellyfish,代码行数:7,代码来源:IFacebookAccountDataRepository.cs

示例9: AdminController

 public AdminController(PostRepository repo, IRepository<Category> category, IRepository<Location> locationRepo, IAccountRepository account)
 {
     _postRepo = repo;
     _categoryRepo = category;
     _locationRepo = locationRepo;
     _accountRepo = account;
 }
开发者ID:OliverCartea,项目名称:Varldsklass,代码行数:7,代码来源:AdminController.cs

示例10: AccountService

 public AccountService(ILoggingService loggingService, IAccountRepository accountRepository,
     ISharedHelper helper)
 {
     _loggingService = loggingService;
     _accountRepository = accountRepository;
     _helper = helper;
 }
开发者ID:khats,项目名称:Coffee,代码行数:7,代码来源:AccountService.cs

示例11: FileWriter

 public FileWriter(IAccountRepository accountRepository, IAccountTagRepository accountTagRepository, ITemplateRepository templateRepository, IJournalRepository journalRepository)
 {
     _accountRepository = accountRepository;
     _accountTagRepository = accountTagRepository;
     _templateRepository = templateRepository;
     _journalRepository = journalRepository;
 }
开发者ID:mattwatson,项目名称:Akcounts,代码行数:7,代码来源:FileWriter.cs

示例12: ReportLogic

 public ReportLogic(IUnitOfWork unit, IReportRepository repo, IActivityRepository a, IAccountRepository ac)
 {
     this.Unit = unit;
     this.Repo = repo;
     this.actRepo = a;
     this.aRepo = ac;
 }
开发者ID:tblue1994,项目名称:SoftwareEngineeringProject2015,代码行数:7,代码来源:ReportLogic.cs

示例13: AuthorizationService

        public AuthorizationService(IAccountRepository accountRepository, ISessionRepository sessionRepository, IPasswordHashManager passwordHashManager)
        {
            _accountRepository = accountRepository;
            _sessionRepository = sessionRepository;

            _passwordHashManager = passwordHashManager;
        }
开发者ID:DoctorSoft,项目名称:HospitalAPI,代码行数:7,代码来源:AuthorizationService.cs

示例14: AccountBrowserViewModel

 public AccountBrowserViewModel(IAccountRepository accountRepository, IAccountTagRepository accountTagRepository, IMainWindowViewModel mainWindow = null)
 {
     _accountRepository = accountRepository;
     _accountTagRepository = accountTagRepository;
     _mainWindow = mainWindow;
     _accounts = new ObservableCollection<AccountViewModel>();
 }
开发者ID:mattwatson,项目名称:Akcounts,代码行数:7,代码来源:AccountBrowserViewModel.cs

示例15: JobController

 public JobController()
 {
     this.profileRepo = new ProfileRepository(new MVCEntities());
     this.jobRepo = new JobRepository(new MVCEntities());
     this.accountRepo = new AccountRepository(new MVCEntities());
     this.notiRepo = new NotificationRepository(new MVCEntities());
 }
开发者ID:pureman9,项目名称:Teamduty,代码行数:7,代码来源:JobController.cs


注:本文中的IAccountRepository类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。