public void TestRepository()
        {
            var options = new DbContextOptionsBuilder <NoteAppDbContext>()
                          .UseInMemoryDatabase(databaseName: "Add_writes_to_database")
                          .Options;

            using (var context = new NoteAppDbContext(options))
            {
            }
        }
        public void TestSearch()
        {
            var options = new DbContextOptionsBuilder <NoteAppDbContext>()
                          .UseInMemoryDatabase(databaseName: "Add_writes_to_database")
                          .Options;

            using (var context = new NoteAppDbContext(options))
            {
                var count = context.Notes.Count();
                Assert.Equal(0, count);
            }
        }
 public AccountController(NoteAppDbContext context)
 {
     db = context;
 }