Пример #1
0
        public TransactionsServiceTests()
        {
            var transactionsRepositoryMock = new RepositoryMockFactory <TransactionEntity>(_transactionEntities)
                                             .GetInstance();

            _service = new TransactionsService(transactionsRepositoryMock.Object);
        }
Пример #2
0
        public AccountsManagerTests()
        {
            var publishEndpoint        = new PublishEndpointMockFactory <IAccountModel>().GetInstance();
            var accountsRepositoryMock = new RepositoryMockFactory <AccountEntity>(_accountEntities).GetInstance();

            _manager = new AccountsManager(
                new Mock <ILogger <AccountsManager> >().Object,
                new AccountsService(accountsRepositoryMock.Object),
                publishEndpoint.Object
                );
        }
        public BillingsManagerTests()
        {
            var publishEndpoint        = new PublishEndpointMockFactory <ITransactionModel>().GetInstance();
            var billingsRepositoryMock = new RepositoryMockFactory <BillingEntity>(_billingEntities).GetInstance();
            var licenseManagerMock     = new LicenseManagerMockFactory <ITransactionModel>().GetInstance();

            _manager = new BillingsManager(
                new Mock <ILogger <BillingsManager> >().Object,
                new BillingsService(billingsRepositoryMock.Object),
                licenseManagerMock.Object,
                publishEndpoint.Object
                );
        }
Пример #4
0
        public ApprovalsManagerTests()
        {
            var publishEndpoint         = new PublishEndpointMockFactory <IAccountModel>().GetInstance();
            var approvalsRepositoryMock = new RepositoryMockFactory <ApprovalEntity>(_approvalEntities).GetInstance();
            var licenseManagerMock      = new LicenseManagerMockFactory <IAccountModel>().GetInstance();

            _manager = new ApprovalsManager(
                new Mock <ILogger <ApprovalsManager> >().Object,
                new ApprovalsService(approvalsRepositoryMock.Object),
                publishEndpoint.Object,
                licenseManagerMock.Object
                );
        }
        public TransactionsManagerTests()
        {
            var publishEndpoint = new PublishEndpointMockFactory <ITransactionModel>()
                                  .GetInstance();
            var transactionsRepositoryMock = new RepositoryMockFactory <TransactionEntity>(_transactionEntities)
                                             .GetInstance();
            var concurrencyManagerMock = new ConcurrencyManagerMockFactory(_transactionEntities).GetInstance();
            var licenseManagerMock     = new LicenseManagerMockFactory <ITransactionModel>().GetInstance();

            _manager = new TransactionsManager(
                new Mock <ILogger <TransactionsManager> >().Object,
                new TransactionsService(transactionsRepositoryMock.Object),
                publishEndpoint.Object,
                concurrencyManagerMock.Object,
                licenseManagerMock.Object
                );
        }
Пример #6
0
        public BillingsServiceTests()
        {
            var billingsRepositoryMock = new RepositoryMockFactory <BillingEntity>(_billingEntities).GetInstance();

            _service = new BillingsService(billingsRepositoryMock.Object);
        }
        public ApprovalsServiceTests()
        {
            var approvalsRepositoryMock = new RepositoryMockFactory <ApprovalEntity>(_approvalEntities).GetInstance();

            _service = new ApprovalsService(approvalsRepositoryMock.Object);
        }
        public AccountsServiceTests()
        {
            var accountsRepositoryMock = new RepositoryMockFactory <AccountEntity>(_accountEntities).GetInstance();

            _service = new AccountsService(accountsRepositoryMock.Object);
        }