public void CreateDatabase()
        {
            context = new EmployeeMapContext(configuration);
            context.Database.EnsureDeleted();
            context.Database.Migrate();
            controller = new EmployeesController(context);

            context.Areas.Add(new Area
            {
                Name = "Executive Area"
            });

            var area = new Area
            {
                Name = "Open Area"
            };

            context.Areas.Add(area);

            context.Employees.Add(new Employee
            {
                FirstName = "Niels",
                LastName  = "Swimberghe",
                Area      = area
            });

            context.Employees.Add(new Employee
            {
                FirstName = "Micheal",
                LastName  = "Fly",
                Area      = area
            });

            context.SaveChanges();
        }
 public AreasController(EmployeeMapContext context)
 {
     this.context = context;
 }
 public void CreateDatabase()
 {
     context = new EmployeeMapContext(configuration);
     context.Database.EnsureDeleted();
     context.Database.Migrate();
 }