Exemple #1
0
        public async Task CanGetDatesPaid()
        {
            foreach (var testAccount in TestAccounts.TyLinAccounts.Accounts)
            {
                var employer = EmployerCache.Employers.FirstOrDefault(e =>
                                                                      e.Id == testAccount.EmployerId);

                var repository = new PayrollRepository();
                repository.Initialize(employer.ConnectionString);

                var dispatcher = new PayrollDispatcher(repository);
                var controller = new PayrollController(dispatcher);

                var result = await controller.GetDatesPaidAsync(employer, testAccount.CchId);

                Assert.IsNotNull(result);
                //Assert.IsNotNull(result.Content);
            }
        }