public void BeforeEach()
        {
            _factory = new MogglesApplicationFactory <TestStartup>();
            var factory = _factory.WithWebHostBuilder(b =>
            {
                b.UseSolutionRelativeContentRoot(Environment.CurrentDirectory);
                b.ConfigureTestServices(services =>
                {
                    services.AddControllersWithViews().AddApplicationPart(typeof(Startup).Assembly);
                });
            });

            _client = factory.CreateClient();
        }
 public void BeforeEach()
 {
     _factory = new MogglesApplicationFactory <TestStartup>();
     _client  = _factory.CreateClient();
 }