Exemple #1
0
        public void TestGetChildOrganization()
        {
            using (UnitOfWork unitwork = new UnitOfWork(store, dbContextFactory))
            {
                IRepository<Organization, Guid> organRepository = new Repository<Organization, Guid>(store);
                OrganizationService organizationService = new OrganizationService();

                ICollection<Organization> childs = organizationService.GetChildOrganizations(organRepository.Query(s => s.Name == "人資部").First().Id);
                Assert.AreEqual(1, childs.Count);
                Assert.AreEqual("企畫課", childs.First().Name);
            }
        }