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); }
public ManageUsersController(Assigment3Context context) { _context = context; }
public AccountController(Assigment3Context context, IOptions <AppSettings> appSettings) { _context = context; _appSettings = appSettings.Value; }
public WheatherDatoesController(Assigment3Context context, IHubContext <WeatherHub> hubContext) { _context = context; _hubContext = hubContext; }