Posted on: 3/12/2015 7:27:19 PM | Views : 599

I am not sure which the right place for this question , so posting it here.
I have a service method for which I need to write unittest cases.But not knowing how to write.Can someone help me on this.
public string GetEmployeeSuffix(string ssnLastGenerated, EmployeeType employeeType, string employeeIdType) { if (employeeType == EmployeeType.Contracted && employeeIdType.ToLower() == "ein") { return "AA"; } else if(employeeType == EmployeeType.Contracted && employeeIdType.ToLower() == "ssn") { return "01"; } else { return "00"; } }

Go to the complete details ...