Ejemplo n.º 1
0
        public WorkHistoryControllerTest()
        {
            var configuration = new ConfigurationBuilder()
                                .SetBasePath(Directory.GetCurrentDirectory())
                                .AddJsonFile("appsettings.json")
                                .Build();

            _repo         = new WorkHistoryRepo(configuration);
            _visitService = new VisitService(configuration);
            _hostEnv      = new HostingEnvironment {
                EnvironmentName = Environments.Development
            };

            _controller = new WorkHistoryController(_repo, _visitService, _hostEnv);
        }
Ejemplo n.º 2
0
 public TestWorkHistoryController()
 {
     _controller = new WorkHistoryController(_repo);
 }