mirror of https://github.com/abpframework/abp.git
2 changed files with 31 additions and 4 deletions
@ -0,0 +1,22 @@ |
|||||
|
using System; |
||||
|
using Volo.Abp.DependencyInjection; |
||||
|
using Volo.Abp.Domain.Repositories; |
||||
|
using Volo.Abp.TestApp.Domain; |
||||
|
|
||||
|
namespace Volo.Abp.TestApp |
||||
|
{ |
||||
|
public class TestDataBuilder : ITransientDependency |
||||
|
{ |
||||
|
private readonly IRepository<Person> _personRepository; |
||||
|
|
||||
|
public TestDataBuilder(IRepository<Person> personRepository) |
||||
|
{ |
||||
|
_personRepository = personRepository; |
||||
|
} |
||||
|
|
||||
|
public void Build() |
||||
|
{ |
||||
|
_personRepository.Insert(new Person(Guid.NewGuid(), "Douglas", 42)); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue