public AccountController(IUnitOfWork uow, IAuth a) { unitOfWork = uow; userService = new UserService(unitOfWork); metroRegionService = new MetroRegionService(unitOfWork); webSecurity = new WebSecurity(uow, a); }
public User ToUser(MetroRegionService metroRegionService) { var user = new User { UserProfile = new Profile { FirstName = this.FirstName, LastName = this.LastName, CellPhoneNumber = this.CellPhone, MetroRegion = metroRegionService.GetRegion(this.Region) } }; user.SetNewEmail(this.Email); user.SetPassword(this.Password); return user; }
public void Init() { unitOfWork = new MockUnitOfWork<MockFlashMercyContext>(); metroRegionService = new MetroRegionService(unitOfWork); }