Ejemplo n.º 1
0
        public TourControllerTests()
        {
            //MoQ  unit of work
            _mockRepository = new Mock <ITourRepository>();
            var mockUoW = new Mock <IUnitOfWork>();

            mockUoW.SetupGet(u => u.Tours).Returns(_mockRepository.Object);
            _controller = new TourController(mockUoW.Object);
            _userId     = "1";
            _controller.MockCurrentUser(_userId, "*****@*****.**");
        }