/// <summary> /// creating object /// </summary> public WebAPITest() { //Arrange employeeRL = new EmployeeRL(); employeeBL = new EmployeeBL(employeeRL); employeesController = new EmployeesController(employeeBL); }
/// <summary> /// Constructor /// </summary> /// <param name="repositoryLayer"></param> public EmployeeBL(IEmployeeRL repositoryLayer) { try { this.repositoryLayer = repositoryLayer; } catch (Exception e) { throw e; } }
/// <summary> /// Initializes a new instance of the <see cref="EmployeeBL"/> class. /// </summary> /// <param name="employeeRepository">It contains the object IEmployeeRepository</param> public EmployeeBL(IEmployeeRL employeeRepository) { this.employeeRepository = employeeRepository; }
public EmployeeBL(IEmployeeRL employeeRL) { this.employeeRL = employeeRL; }
public EmployeeBL(IEmployeeRL empService) { this.empService = empService; }
//Constructor public EmployeeBL(IEmployeeRL _employeeRL) { this.employeeRL = _employeeRL; }
public EmployeeBL(IEmployeeRL employeeRepoL) { employeeRL = employeeRepoL; }
/// <summary> /// Declare employee test case constructor /// </summary> public EmployeeTestCase() { repository = new EmployeesRL(); business = new EmployeeBL(repository); employeeController = new EmployeesController(business, distributedCache); }
public EmployeeBLcs(IEmployeeRL employeeRL) //Constructor n passing an object to IEmployeeBL { //to get an access of IEmployeeRL this.employeeRL = employeeRL; }
/// <summary> /// Default constructor used to create new objects /// </summary> public EmployeeTestCases() { employeeRepository = new EmployeeRL(); employeeBuiseness = new EmployeeBL(employeeRepository); employeeController = new EmployeeController(employeeBuiseness); }
/// <summary> /// Initializes a new instance of the <see cref="EmployeeManagementTesting" /> class. /// </summary> public EmployeeManagementTesting() { this.employeeRL = new EmployeeRepository(); this.employeeBL = new EmployeeBusiness(this.employeeRL); this.employeeController = new EmployeeController(this.employeeBL); }
/// <summary> /// Initializes a new instance of the <see cref="EmployeeBusiness" /> class. /// </summary> /// <param name="employeeRepository">interface instance</param> public EmployeeBusiness(IEmployeeRL employeeRepository) { this.employeeRepository = employeeRepository; }