Esempio n. 1
0
        public async Task Delete_Test()
        {
            //Act
            var hebei = await CreateRegion("hebei");

            await CreateRegion("shijiazhuang", hebei.Id);

            var chengde = await CreateRegion("chengde", hebei.Id);

            await CreateRegion("shaungqiao", chengde.Id);
            await CreateRegion("shaungluan", chengde.Id);

            await _generalRegionTreeManager.DeleteAsync(hebei.Id);

            //Assert
            var hb = GetRegion("hebei");

            hb.ShouldBeNull();

            var sjz = GetRegion("shijiazhuang");

            sjz.ShouldBeNull();

            var cd = GetRegion("chengde");

            cd.ShouldBeNull();

            var cdsq = GetRegion("shaungqiao");

            cdsq.ShouldBeNull();
        }
 public async Task DeleteAsync(long id)
 {
     await _generalWarehouseTreeManager.DeleteAsync(id);
 }
Esempio n. 3
0
 public async Task DeleteMenu(EntityDto <Guid> input)
 {
     await _menuTreeManager.DeleteAsync(input.Id);
 }