public void Test1() { //ACT DesignationController designation = new DesignationController(); //ASSERT Assert.Equal("Senior Software Engineer", designation.GetDesignation("L3")); Assert.NotEqual("Junior Software Engineer", designation.GetDesignation("L2")); }
public void Fake_Returns_Designation_Level() { Fake stubClass = new Fake(); DesignationController designation = new DesignationController(stubClass); string result = designation.GetDesignation("L1"); Assert.Equal("Junior Software Engineer", result); }
public void Designation_returns_Junior_software_engineer_for_L1() { StubDesignation stubDesignation = new StubDesignation(); DesignationController designationController = new DesignationController(stubDesignation); string result = designationController.GetDesignation("L1"); Assert.Equal("Junior Software Engineer", result); }
public void DesignationController_Get(int id) { // Arrange // Set up Prerequisites var controller = new DesignationController(designationRepository, commonQueryRepo); // Act on Test - For Get var response = controller.Get(id); // Assert the result Assert.IsNotNull(response); //Assert.IsNotNull(response.Content); //Assert.AreEqual(1, response.Content.Dept_Id); //Assert.Pass(); }
public void Setup() { controller = new DesignationController(designationRepository, commonQueryRepo); }