public void SetUp() { _mockedPersonRepository = new Mock<IPersonRepository>(); _mockedPersonRepository.Setup(q => q.GetEmployees()) .Returns(SetEmployeeData); _userManager = new UserManager(_mockedPersonRepository.Object); }
public HomeController(IPersonRepository repository) { _userManager = new UserManager(repository); }
public PersonController(IPersonRepository personRepository) { _userManager = new UserManager(personRepository); }