예제 #1
0
        public void SetUp()
        {
            _mockedPersonRepository = new Mock<IPersonRepository>();

            _mockedPersonRepository.Setup(q => q.GetEmployees())
                .Returns(SetEmployeeData);

            _userManager = new UserManager(_mockedPersonRepository.Object);
        }
예제 #2
0
 public HomeController(IPersonRepository repository)
 {
     _userManager = new UserManager(repository);
 }
예제 #3
0
 public PersonController(IPersonRepository personRepository)
 {
     _userManager = new UserManager(personRepository);
 }