Exemplo n.º 1
0
        protected override bool OnTarget(Mobile mob)
        {
            FriendContext friendContext = new FriendContext(mob);

            if (mob.HasName)
            {
                friendContext.OnFinish();
            }
            else
            {
                friendContext.Dispatch();
            }
            return(true);
        }
Exemplo n.º 2
0
 public FriendController()
 {
     _context = new FriendContext();
 }
Exemplo n.º 3
0
 public FriendService(FriendContext context)
 {
     FriendRepository = new FriendRepository(context);
 }
Exemplo n.º 4
0
 public FriendRepository(FriendContext friendContext)
 {
     FriendDb = friendContext;
 }
Exemplo n.º 5
0
 public FriendsController(FriendContext context)
 {
     _context = context;
 }
Exemplo n.º 6
0
 public FriendRepository(FriendContext context)
 {
     this.Context = context;
 }