Example #1
0
 public void TestSetup()
 {
     _ticketMock = new Mock<ITicketHandler>();
     _productMock = new Mock<IBaseHandler<ProductDomain>>();
     _ticketMock.Setup(x => x.GetById(It.IsAny<Int32>()))
         .Returns(Fakes.FakeTicketRepository.GetFakeTicket().CreateTicketDomain());
     var currentUserMock = new Mock<ICurrentUser>();
     currentUserMock.Setup(x => x.GetUserId()).Returns("FakeUserId");
     _ticketController = new TicketController(_ticketMock.Object, _productMock.Object, currentUserMock.Object);
 }
Example #2
0
 public void TestTeardown()
 {
     _ticketMock = null;
     _productMock = null;
     _ticketController = null;
 }