Inheritance: Controller
Ejemplo n.º 1
0
 public void SetUp()
 {
     security = new MockupSecurityService();
     userRepository = new Mock<IUserRepository>();
     teamRepository = new Mock<ITeamRepository>();
     userController = new UserController(security, userRepository.Object, teamRepository.Object);
 }
Ejemplo n.º 2
0
 public void SetUp()
 {
     SecurityService = new MockupSecurityService { ReturnUser = new User { Team = new Team { Name = "The team" } } };
     EmailServices = new Moq.Mock<IEmailService>();
     userRepository = new Mock<IUserRepository>();
     teamRepository = new Mock<ITeamRepository>();
     userController = new UserController(security, userRepository.Object, teamRepository.Object);
 }
Ejemplo n.º 3
0
        public void SetUp()
        {
            SecurityService = new MockupSecurityService { ReturnUser = new User { Team = new Team { Name = "The team" } } };
            EmailServices = new Moq.Mock<IEmailService>();
            _userRepository = new Mock<IUserRepository>();
            _teamRepository = new Mock<ITeamRepository>();
            _userController = new UserController(_security, _userRepository.Object, _teamRepository.Object);
            _activityRepository = new Mock<IActivityRepository>();

            _teamRepository.Setup(t => t.CreateTeam("Team Ninja"));
        }