﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BackendApi.App_Start;
using BackendApi.Persistence;
using BackendTests.TestHelpers;
using Effort;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace BackendTests.Controllers.BookingController
{
    public partial class BookingControllerTests
    {
        private DatabaseContext _context;
        private ControllerHelpers _controllerHelpers;

        [ClassInitialize]
        public static void ClassInit(TestContext context)
        {
            AutoMapperConfiguration.Configure();
        }

        [TestInitialize]
        public void Initialize()
        {
            var connection = DbConnectionFactory.CreateTransient();
            _context = new DatabaseContext(connection);
            _controllerHelpers = new ControllerHelpers(_context);
        }
    }
}
