public void Test_Add() { var mockContext = new Mock <ApplicationDbContext>(); var unitOfWork = new EventUnitOfWork(mockContext.Object); var log = new NullLogger <TimeController>(); var output = new TimeController(unitOfWork, log); var result = output.AddEvent(); Assert.IsType <ViewResult>(result); }