Exemplo n.º 1
0
        public PersonBlTest()
        {
            DtoMappers.Init();

            _personDto = new PersonDto();
            _personRepository = A.Fake<IPersonRepository>();
            _uow = new UnitOfWorkTest {PersonRepository = _personRepository};

            _person = new Person
            {
                Id = PersonId,
                Age = 20,
                FirstName = "First",
                LastName = "Last",
                Sex = true
            };
        }
Exemplo n.º 2
0
 internal PersonDto FromEntityToModel(Person person)
 {
     var personDto = Mapper.Map<PersonDto>(person);
     return personDto;
 }