コード例 #1
0
        public AccountsController()
        {
            IKernel kernel = new StandardKernel(new BankingModule());

            this.Repository             = kernel.Get <AccountsRepository>();
            this.AccountTypesRepository = kernel.Get <AccountTypesRepository>();
        }
コード例 #2
0
        public void TestDataDownloading()
        {
            AccountTypesRepository repo    = AccountTypesRepository.Instance;
            DatabaseManager        manager = DatabaseManager.Instance;

            manager.GetData <AccountType, AccountTypesRepository>(repo);

            var data      = repo.Data.Select().ToList();
            var checkData = new List <string>();

            for (int i = 0; i < checkData.Count; ++i)
            {
                Assert.AreEqual(checkData[i], data[i].TypeName);
            }
        }