private static ISession MockHttpSession() { MockHttpSession httpSession = new MockHttpSession(); httpSession.SetObject("UserEmail", "*****@*****.**"); return(httpSession); }
public void ListActionMethod_ReturnsAViewResult() { // arrange MockHttpSession httpcontext = new MockHttpSession(); var gameGridDTO = new Mock <GameGridDTO>(); // act var result = _controller.List(gameGridDTO.Object); // assert Assert.IsInstanceOf <ViewResult>(result); }