//private IHolder hldr; /// <summary> /// Initializes a new instance of the <see cref="UserAccountController" /> class. /// The dependencies are injected using castle windsor /// This is implemented using strategic design pattern. /// </summary> /// <param name="obj">The user account instance</param> public UserAccountController(IUserAccount obj, IHolderPerson obj1, ISeekerService ISS) { //Assigning the object. this.obj = obj; this.IHP = obj1; this.ISS = ISS; }
public void Setup() { _seekerService = new SeekerService(); _role = new Role { Id = (int)RoleEnum.Admin, Name = "Admin", Description = "Administrator" }; _roleBis = new Role { Id = (int)RoleEnum.SuperAdmin, Name = "SuperAdmin", Description = "Super Administrator" }; _users = new List <User> { new User { Id = 1, Name = "Juan", SurName = "Añón", Mail = "*****@*****.**", BirthDate = DateTime.Now.AddYears(-33), Password = "******", Role = _role }, new User { Id = 2, Name = "Juan Francisco", SurName = "García", Mail = "*****@*****.**", BirthDate = DateTime.Now.AddYears(-40), Password = "******", Role = _roleBis }, new User { Id = 2, Name = "Gonzalo", SurName = "Pérez", Mail = "*****@*****.**", BirthDate = DateTime.Now.AddYears(-44), Password = "******", Role = _roleBis } }; }