Esempio n. 1
0
        public AccountTypeControllerTest()
        {
            var configuration = Substitute.For <IConfiguration>();

            _dataContext = new DataContext(configuration, "test-database-account-type");
            _controller  = new AccountTypeController(_dataContext);
        }
 public void Initialize()
 {
     _accountTypeManagerMock = new Mock <IAccountTypeManager>();
     objController           = new AccountTypeController(_accountTypeManagerMock.Object);
     list = new List <AccountType> {
         new AccountType {
             Id = 1, Name = "SAVING"
         },
         new AccountType {
             Id = 2, Name = "CURRENT"
         },
         new AccountType {
             Id = 3, Name = "LOAN"
         }
     };
 }