Beispiel #1
0
 public IEnumerable <string> SortByStreetAndFrequency(IAppDataContext context)
 {
     return(context.Addresses.OrderBy(x => x.Street)
            .Select(x => $"{x.Number} {x.Street}"));
 }
Beispiel #2
0
 public Handler(IAppDataContext context)
 {
     _context = context;
 }
Beispiel #3
0
 public AnswerRepository(IAppDataContext dbContext) : base(dbContext: dbContext)
 {
 }
 public DocumentService(IAppDataContext context) : base(context)
 {
 }
Beispiel #5
0
 public FolderRepository(IAppDataContext context) : base(context)
 {
 }
Beispiel #6
0
 public StalkService(IAppDataContext context)
 {
     db = context ?? new ApplicationDbContext();
 }
 public Handler(IAppDataContext context, ICache cache)
 {
     _context = context;
     _cache   = cache;
 }
Beispiel #8
0
 public PostService(IAppDataContext context)
 {
     _dbContext = context ?? new ApplicationDbContext();
 }
Beispiel #9
0
 public PostService(IAppDataContext context)
 {
     // if context is null, then use new ApplicationDbContext();
     db = context ?? new ApplicationDbContext();
 }
 /// <summary>
 /// Constructor, makes a new instance of database connection. If parameter is null it sets the _db as
 /// 'new ApplicationDbContext' else it takes the 'IAppDataContext context' parameter and uses that
 /// (used for unit testing).
 /// </summary>
 /// <param name="context"></param>
 public ProjectService(IAppDataContext context)
 {
     _db = context ?? new ApplicationDbContext();
 }
Beispiel #11
0
 public AppDataService(IAppDataContext context) => Context = context;
 public AppMediator(MultiInstanceFactory multiInstanceFactory, SingleInstanceFactory singleInstanceFactory, IHttpContextAccessor httpContextAccessor, IAppDataContext appDataContext)
 {
     _inner = new Mediator(singleInstanceFactory, multiInstanceFactory);
     _httpContextAccessor = httpContextAccessor;
     _appDataContext      = appDataContext;
 }
Beispiel #13
0
 public UsersInCourseService(IAppDataContext context)
 {
     db = context ?? new ApplicationDbContext();
 }
 public AssignmentsService(IAppDataContext dataContext = null)
 {
     db = dataContext ?? new ApplicationDbContext();
 }
Beispiel #15
0
 public EventService(IAppDataContext dbContext)
 {
     _db = dbContext ?? new ApplicationDbContext();
 }
 public SolutionService(IAppDataContext dataContext = null)
 {
     db = dataContext ?? new ApplicationDbContext();
 }
Beispiel #17
0
 public FileRepository(IAppDataContext context) : base(context)
 {
 }
Beispiel #18
0
 public void OneTimeSetUp()
 {
     _remoteDataProvider = new RemoteDataProvider("", "", "");
     _appDataContext     = AppDataContextFactory.GetAppDataContext(_remoteDataProvider);
 }
Beispiel #19
0
 public GroupListService(IAppDataContext dbContext)
 {
     _db = dbContext ?? new ApplicationDbContext();
 }
Beispiel #20
0
     public TodoItemDetailViewModel(INavigationService navigationService, IPageDialogService pageDialogService,
 #if (UseAcrDialogs)
                                    IDeviceService deviceService, IAppDataContext dataContext, IUserDialogs userDialogs)
Beispiel #21
0
 public FileService(IAppDataContext context)
 {
     DB = context ?? new ApplicationDbContext();
 }
Beispiel #22
0
 public BaseRepository(IAppDataContext context)
 {
     db = context ?? new ApplicationDbContext();
 }
 public VLN2_2017_H27Entities2(IAppDataContext context)
 {
 }
 public LikeBookHandler(IAppDataContext db)
 {
     _db = db;
 }