mirror of https://github.com/abpframework/abp
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.
22 lines
550 B
22 lines
550 B
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));
|
|
}
|
|
}
|
|
} |