public CouriersControllerTests()
 {
     _mockedCourierService = new Mock <ICourierService>();
     _mapper = new MapperConfiguration(cfg =>
     {
         cfg.AddProfile(new ModelToRecourceProfile());
         cfg.AddProfile(new ResourceToModelProfile());
     }).CreateMapper();
     _couriersController = new CouriersController(_mockedCourierService.Object, _mapper);
 }
Ejemplo n.º 2
0
 public CouriersControllerTests()
 {
     _service    = new Mock <ICourierService>();
     _controller = new CouriersController(_service.Object);
 }