public static User CreateUser(UserTypeDirectory userType, IUserService userService) { if (userType == UserTypeDirectory.Guest) { return(new GuestUser(userService, userType)); } if (userType == UserTypeDirectory.Administrator) { return(new AdministratorUser(userService, userType)); } return(new User(userService, userType)); }
public static User CreateUser(IUserService userService, UserTypeDirectory userType) { return(new User(userService, userType)); }
public User(IUserService userService, UserTypeDirectory userType) { _userService = userService; _userType = userType; }
public AdministratorUser(IUserService userService, UserTypeDirectory userType) : base(userService, userType) { }
public GuestUser(IUserService userService, UserTypeDirectory userType) : base(userService, userType) { }
public User(UserTypeDirectory type) { _type = type; }
public User(UserTypeDirectory userType) { _userType = userType; }