You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
924 B

3 years ago
  1. using Shentun.Peis.GuidTypes;
  2. using Shentun.Peis.ItemTypes;
  3. using Shentun.Peis.Models;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using Volo.Abp.Domain.Repositories;
  10. using Xunit;
  11. namespace Shentun.Peis
  12. {
  13. public class GuideTypeManagerTest : PeisDomainEfTestBase
  14. {
  15. private readonly IRepository<GuideType, Guid> _repository;
  16. private readonly GuideTypeManager _manager;
  17. public GuideTypeManagerTest()
  18. {
  19. _repository = GetRequiredService<IRepository<GuideType, Guid>>();
  20. _manager = GetRequiredService<GuideTypeManager>();
  21. }
  22. [Fact]
  23. public async Task Should_Set_CanAdd()
  24. {
  25. var item = await _manager.CreateAsync("普通");
  26. item = await _repository.UpdateAsync(item);
  27. Console.WriteLine(item.Id.ToString());
  28. }
  29. }
  30. }