コード例 #1
0
 public NotificationService(OurTraceDbContext dbContext,
                            IMapper automapper)
 {
     this.dbContext       = dbContext;
     this.automapper      = automapper;
     this.identityService = new IdentityService(dbContext);
 }
コード例 #2
0
ファイル: RoleService.cs プロジェクト: JuganD/OurTrace
 public RoleService(OurTraceDbContext dbContext,
                    RoleManager <OurTraceRole> roleManager,
                    UserManager <OurTraceUser> userManager)
 {
     this.identityService = new IdentityService(dbContext);
     this.roleManager     = roleManager;
     this.userManager     = userManager;
 }
コード例 #3
0
 public SearchService(OurTraceDbContext dbContext,
                      IMapper automapper,
                      IPostService postService)
 {
     this.dbContext   = dbContext;
     this.automapper  = automapper;
     this.postService = postService;
 }
コード例 #4
0
 public MessageService(OurTraceDbContext dbContext,
                       IMapper automapper,
                       IRelationsService relationsService)
 {
     this.dbContext        = dbContext;
     this.automapper       = automapper;
     this.relationsService = relationsService;
     this.identityService  = new IdentityService(dbContext);
 }
コード例 #5
0
        public GroupService(OurTraceDbContext dbContext,
                            IMapper automapper)
        {
            this.dbContext  = dbContext;
            this.automapper = automapper;

            this.wallService     = new WallService(dbContext);
            this.identityService = new IdentityService(dbContext);
        }
コード例 #6
0
ファイル: UserService.cs プロジェクト: JuganD/OurTrace
        public UserService(OurTraceDbContext dbContext,
                           IMapper mapper,
                           IRelationsService relationsService)
        {
            this.mapper           = mapper;
            this.relationsService = relationsService;

            this.wallService     = new WallService(dbContext);
            this.identityService = new IdentityService(dbContext);
        }
コード例 #7
0
        public NotificationServiceTests()
        {
            var options = new DbContextOptionsBuilder <OurTraceDbContext>()
                          .UseInMemoryDatabase(Guid.NewGuid().ToString())
                          .Options;

            this.dbContext = new OurTraceDbContext(options);

            this.automapper          = MapperInitializer.CreateMapper();
            this.notificationService = new NotificationService(dbContext, automapper);
        }
コード例 #8
0
ファイル: PostServiceTests.cs プロジェクト: JuganD/OurTrace
        public PostServiceTests()
        {
            var options = new DbContextOptionsBuilder<OurTraceDbContext>()
               .UseInMemoryDatabase(Guid.NewGuid().ToString())
               .Options;
            this.dbContext = new OurTraceDbContext(options);

            this.automapper = MapperInitializer.CreateMapper();
            var groupService = new GroupService(dbContext, automapper);
            var relationsService = new RelationsService(dbContext, automapper);
            FileService fileService = null; // mocked - not used
            this.postService = new PostService(dbContext, relationsService, groupService, fileService, automapper);
        }
コード例 #9
0
        public MessageServiceTests()
        {
            var options = new DbContextOptionsBuilder <OurTraceDbContext>()
                          .UseInMemoryDatabase(Guid.NewGuid().ToString())
                          .Options;

            this.dbContext = new OurTraceDbContext(options);

            this.automapper = MapperInitializer.CreateMapper();
            var relationsService = new RelationsService(dbContext, automapper);

            this.messageService = new MessageService(dbContext, automapper, relationsService);
        }
コード例 #10
0
ファイル: PostService.cs プロジェクト: JuganD/OurTrace
 public PostService(OurTraceDbContext dbContext,
                    IRelationsService relationsService,
                    IGroupService groupService,
                    IFileService fileService,
                    IMapper automapper)
 {
     this.dbContext        = dbContext;
     this.relationsService = relationsService;
     this.groupService     = groupService;
     this.fileService      = fileService;
     this.automapper       = automapper;
     this.wallService      = new WallService(dbContext);
     this.identityService  = new IdentityService(dbContext);
 }
コード例 #11
0
ファイル: HomeService.cs プロジェクト: JuganD/OurTrace
 public HomeService(OurTraceDbContext dbContext,
                    IMapper automapper,
                    IAdvertService advertService,
                    IRelationsService relationsService,
                    IGroupService groupService)
 {
     this.dbContext        = dbContext;
     this.automapper       = automapper;
     this.advertService    = advertService;
     this.relationsService = relationsService;
     this.groupService     = groupService;
     this.identityService  = new IdentityService(dbContext);
     this.wallService      = new WallService(dbContext);
 }
コード例 #12
0
        public HomeServiceTests()
        {
            var options = new DbContextOptionsBuilder <OurTraceDbContext>()
                          .UseInMemoryDatabase(Guid.NewGuid().ToString())
                          .Options;

            this.dbContext = new OurTraceDbContext(options);

            this.automapper = MapperInitializer.CreateMapper();
            var advertService    = new AdvertService(dbContext, automapper);
            var relationsService = new RelationsService(dbContext, automapper);
            var groupService     = new GroupService(dbContext, automapper);

            this.homeService = new HomeService(dbContext, automapper, advertService, relationsService, groupService);
        }
コード例 #13
0
 internal IdentityService(OurTraceDbContext dbContext)
 {
     this.dbContext = dbContext;
 }
コード例 #14
0
ファイル: WallService.cs プロジェクト: JuganD/OurTrace
 public WallService(OurTraceDbContext dbContext)
 {
     this.dbContext = dbContext;
 }
コード例 #15
0
 public AdvertService(OurTraceDbContext dbContext,
                      IMapper automapper)
 {
     this.dbContext  = dbContext;
     this.automapper = automapper;
 }