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.
|
|
using Shentun.Peis.GuidTypes;using Shentun.Peis.ItemTypes;using Shentun.Peis.Models;using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using Volo.Abp.Domain.Repositories;using Xunit;
namespace Shentun.Peis{ public class GuideTypeManagerTest : PeisDomainEfTestBase { private readonly IRepository<GuideType, Guid> _repository; private readonly GuideTypeManager _manager;
public GuideTypeManagerTest() { _repository = GetRequiredService<IRepository<GuideType, Guid>>(); _manager = GetRequiredService<GuideTypeManager>(); } [Fact] public async Task Should_Set_CanAdd() { var item = await _manager.CreateAsync("普通"); item = await _repository.UpdateAsync(item); Console.WriteLine(item.Id.ToString()); } }}
|