public NotificationService(OurTraceDbContext dbContext, IMapper automapper) { this.dbContext = dbContext; this.automapper = automapper; this.identityService = new IdentityService(dbContext); }
public RoleService(OurTraceDbContext dbContext, RoleManager <OurTraceRole> roleManager, UserManager <OurTraceUser> userManager) { this.identityService = new IdentityService(dbContext); this.roleManager = roleManager; this.userManager = userManager; }
public SearchService(OurTraceDbContext dbContext, IMapper automapper, IPostService postService) { this.dbContext = dbContext; this.automapper = automapper; this.postService = postService; }
public MessageService(OurTraceDbContext dbContext, IMapper automapper, IRelationsService relationsService) { this.dbContext = dbContext; this.automapper = automapper; this.relationsService = relationsService; this.identityService = new IdentityService(dbContext); }
public GroupService(OurTraceDbContext dbContext, IMapper automapper) { this.dbContext = dbContext; this.automapper = automapper; this.wallService = new WallService(dbContext); this.identityService = new IdentityService(dbContext); }
public UserService(OurTraceDbContext dbContext, IMapper mapper, IRelationsService relationsService) { this.mapper = mapper; this.relationsService = relationsService; this.wallService = new WallService(dbContext); this.identityService = new IdentityService(dbContext); }
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); }
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); }
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); }
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); }
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); }
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); }
internal IdentityService(OurTraceDbContext dbContext) { this.dbContext = dbContext; }
public WallService(OurTraceDbContext dbContext) { this.dbContext = dbContext; }
public AdvertService(OurTraceDbContext dbContext, IMapper automapper) { this.dbContext = dbContext; this.automapper = automapper; }