public void Configure_Instantiates_TodoItemRepository()
        {
            // arrange
              var context = new ApplicationDbContext();

              // act
              Program.Configure(context);

              // assert
              Assert.IsNotNull(Program._todoItemRepository);
        }
 public static void Main(string[] args)
 {
     using(var context = new ApplicationDbContext())
       {
     Configure(context);
     string input;
     while(!string.IsNullOrEmpty(input = Console.ReadLine()))
     {
       AddNewTodoItem(_todoItemRepository, input);
     }
       }
 }
 public static void Configure(ApplicationDbContext context)
 {
     _todoItemRepository = new TodoItemRepository(context);
 }
 public TodoItemRepository(ApplicationDbContext context)
 {
     _context = context;
 }
 public TodoItemRepositoryTests()
 {
     _context = new ApplicationDbContext();
       _repository = new TodoItemRepository(_context);
 }