示例#1
0
        public UnitTest()
        {
            var connection = new SqliteConnection("Data Source=:memory:");

            connection.Open();
            var options = new DbContextOptionsBuilder <Assigment3Context>().UseSqlite(connection).Options;

            _db  = new Assigment3Context(options);
            _uut = new WheatherDatoesController(_db, null);
        }
示例#2
0
 public ManageUsersController(Assigment3Context context)
 {
     _context = context;
 }
示例#3
0
 public AccountController(Assigment3Context context, IOptions <AppSettings> appSettings)
 {
     _context     = context;
     _appSettings = appSettings.Value;
 }
 public WheatherDatoesController(Assigment3Context context, IHubContext <WeatherHub> hubContext)
 {
     _context    = context;
     _hubContext = hubContext;
 }