/// <summary> /// Initializes a new instance of the <see cref="UsersController"/> class. /// </summary> /// <param name="context">The context<see cref="PigeonContext"/>.</param> /// <param name="mapper">The mapper<see cref="IMapper"/>.</param> /// <param name="appsettings">The appsettings<see cref="IOptions{AppSettings}"/>.</param> public UsersController(IWebHostEnvironment environment, IConfiguration configuration, PigeonContext context, IMapper mapper, IOptions <AppSettings> appsettings) { _environment = environment; _configuration = configuration; _context = context; _mapper = mapper; _appSettings = appsettings.Value; _userRepository = new UserRepository(_context); _cityRepository = new CityRepository(_context); }
public void TestCleanup() { if (this.httpTestServer != null) { this.httpTestServer.Dispose(); } var context = new PigeonContext(); context.Users.Delete(); context.UserSessions.Delete(); }
/// <summary> /// Initializes a new instance of the <see cref="ReportController"/> class. /// </summary> /// <param name="context">The context<see cref="PigeonContext"/>.</param> /// <param name="mapper">The mapper<see cref="IMapper"/>.</param> public MessageController(PigeonContext context, IMapper mapper) { _context = context; _mapper = mapper; }
/// <summary> /// Initializes a new instance of the <see cref="UsersController"/> class. /// </summary> /// <param name="context">The context<see cref="PigeonContext"/>.</param> /// <param name="mapper">The mapper<see cref="IMapper"/>.</param> public GroupController(PigeonContext context, IMapper mapper) { _context = context; _mapper = mapper; }
/// <summary> /// Initializes a new instance of the <see cref="FriendsController"/> class. /// </summary> /// <param name="context">The context<see cref="PigeonContext"/>.</param> /// <param name="mapper">The mapper<see cref="IMapper"/>.</param> public FriendsController(PigeonContext context, IMapper mapper) { _context = context; _mapper = mapper; }
public CityRepository(PigeonContext context) { _context = context; }
public CitiesController(PigeonContext context) { _context = context; }
/// <summary> /// Initializes a new instance of the <see cref="ReportController"/> class. /// </summary> /// <param name="context">The context<see cref="PigeonContext"/>.</param> /// <param name="mapper">The mapper<see cref="IMapper"/>.</param> public ReportController(PigeonContext context, IMapper mapper) { _context = context; _mapper = mapper; }
public UserRepository(PigeonContext context) { _context = context; }