mirror of https://github.com/abpframework/abp
parent
863a65f0db
commit
5b962370bb
@ -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