Exemple #1
0
 public ConfigurationTests(ITestOutputHelper output, ApplicationBaseFixture app)
 {
     _output        = output;
     _app           = app;
     _access        = _app.ServiceProvider.GetService <TenantAccess>();
     _accountingApi = new AccountingApi();
 }
Exemple #2
0
 public WebhookTests(ITestOutputHelper output, ApplicationBaseFixture app)
 {
     _output            = output;
     _app               = app;
     _access            = _app.ServiceProvider.GetService <TenantAccess>();
     _accountingApi     = new AccountingApi();
     _storageRepository = _app.ServiceProvider.GetService <StorageRepository>();
 }
Exemple #3
0
 public WebhookServices(ISignatureVerifier signatureVerifier
                        , PayloadTable storeTable, ITokenStore tokenStore, TenantAccess tenantAccess
                        , AccountingApi accountingApi)
 {
     //_client = httpClient;
     _signatureVerifier = signatureVerifier;
     _storeTable        = storeTable;
     _tokenStore        = tokenStore;
     _accountingApi     = accountingApi;
     _tenantAccess      = tenantAccess;
 }
        public MainWindow()
        {
            InitializeComponent();
            property_id = 0;

            Loaded += MainWindow_Loaded;

            _expenseAccess  = new ExpenseAccess(context);
            _propertyAccess = new PropertyAccess(context, this);
            _tenantAccess   = new TenantAccess(context);

            DataContext = this;


            #region ExpenseTabLogic

            //Add Expense Button
            Button addExpenseBtn = new Button
            {
                Name = "addExpenseBtn"
            };
            addExpenseBtn.Click += AddExpenseBtn_Click;

            //Update Expense Button
            Button updateExpenseBtn = new Button
            {
                Name = "updateExpenseBtn"
            };
            updateExpenseBtn.Click += UpdateExpenseBtn_Click;

            //Delete Expense Button
            Button deleteExpenseBtn = new Button
            {
                Name = "deleteExpenseBtn"
            };
            deleteExpenseBtn.Click += DeleteExpenseBtn_Click;

            #endregion

            #region PropertyTabLogic
            Button addPropertyBtn = new Button
            {
                Name = "addPropertyBtn"
            };
            addPropertyBtn.Click += AddPropertyBtn_Click;

            Button savePropertyBtn = new Button
            {
                Name = "savePropertyBtn"
            };
            savePropertyBtn.Click += SavePropertyBtn_Click;
            #endregion
        }
        public AddTenant(jenningsdbEntitiesConnection context, TenantAccess tenantAccess, int propertyId)
        {
            InitializeComponent();
            this.context    = context;
            this.propertyId = propertyId;
            _tenantAccess   = tenantAccess;

            //Cancel Transaction Button
            Button cancelBtn = new Button()
            {
                Name = "CancelBtn"
            };

            cancelBtn.Click += CancelBtn_Click;

            //Add tenant button
            Button saveBtn = new Button()
            {
                Name = "SaveBtn"
            };

            saveBtn.Click += SaveBtn_Click;
        }