예제 #1
0
 /*
  *  Name: UserRepository
  *  Description: Constructor to allow ease of mocking
  *  Arguments: Implementations of the context,security, and repositories.
  */
 public UserRepository(ISocialContext sc, IWebSecurity webSecurity
     , IPostRepository postrepo, IGroupRepository grouprepo)
 {
     db = sc;
     WebSecurity = webSecurity;
     pr = postrepo;
     gr = grouprepo;
 }
 public MockUserRepository(ISocialContext sc, IWebSecurity webSecurity
                           , IPostRepository postrepo, IGroupRepository grouprepo)
 {
     db          = sc;
     WebSecurity = webSecurity;
     pr          = postrepo;
     gr          = grouprepo;
 }
 /*
  *  Name: MapController
  *  Description: Constructer that allows the UserRepository, and SocialContext to be injected.
  */
 public MapController(ISocialContext sc, IUserRepository userrepo)
 {
     db = sc;
     ur = userrepo;
 }
예제 #4
0
 public PostRepository(ISocialContext sc)
 {
     db = sc;
 }
예제 #5
0
 /*
  *  Name: MapController
  *  Description: Constructer that allows the UserRepository, and SocialContext to be injected.
  */
 public MapController(ISocialContext sc, IUserRepository userrepo)
 {
     db = sc;
     ur = userrepo;
 }
 public GroupRepository(ISocialContext sc)
 {
     db = sc;
 }
 public PostRepository(ISocialContext sc)
 {
     db = sc;
 }
예제 #8
0
 /*
  *  Name: PostingController
  *  Description: Constructer that allows the context, UserRepository, and GroupRepository to be injected.
  */
 public PostingController(ISocialContext sc,IUserRepository userrepo, IGroupRepository grouprepo)
 {
     db = sc;
     ur = userrepo;
     gr = grouprepo;
 }
예제 #9
0
 public AdminController(ISocialContext sc, IWebSecurity webSecurity)
 {
     WebSecurity = webSecurity;
     db          = sc;
 }
 public AdminController(ISocialContext sc, IWebSecurity webSecurity)
 {
     WebSecurity = webSecurity;
     db = sc;
 }
 public GroupRepository(ISocialContext sc)
 {
     db = sc;
 }
 /*
  *  Name: PostingController
  *  Description: Constructer that allows the context, UserRepository, and GroupRepository to be injected.
  */
 public PostingController(ISocialContext sc, IUserRepository userrepo, IGroupRepository grouprepo)
 {
     db = sc;
     ur = userrepo;
     gr = grouprepo;
 }