Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
public void SimpleMoqTest() { //Arrange var moqContext = new Mock <CompanyContext>(); moqContext.Setup(ctx => ctx.Check).Returns("Hi"); //Action EmployeeController employeeController = new EmployeeController(moqContext.Object); //Assert Assert.AreEqual(true, employeeController.CheckTheCheck()); }