public StudentStorerTest() { _faker = new Faker(); _studentDto = new StudentDto { Name = _faker.Person.FullName, Email = _faker.Person.Email, Nif = _faker.Person.Cpf(), TargetAudience = TargetAudience.Employee.ToString(), }; _studentRepository = new Mock <IStudentRepository>(); var conversorDePublicoAlvo = new Mock <IConversorDePublicoAlvo>(); _studentStorer = new StudentStorer(_studentRepository.Object, conversorDePublicoAlvo.Object); }
public AlunoController(StudentStorer studentStorer, IRepository <Student> studentRepository) { _studentStorer = studentStorer; _studentRepository = studentRepository; }