I have added an Excel file to provide unit test values.
Below is a example about what I was doing before
public void test1()
{
try
{
var Service = new Service.ServiceClient();
var Cid = testContextInstance.DataRow["CId"].ToString();
var MNumber = testContextInstance.DataRow["MNumber"].ToString();
var VID = testContextInstance.DataRow["VID"].ToString();
var isVisit = new Service.ISVisit()
{
};
var first = Service.Medis(isVisit).Cast<Service.ISMedi>().FirstOrDefault();
// Assert
Assert.AreEqual("12345678", first.Proc.ProcID);
}
.i am using excel sheet to provide values for the untitest.

By using the sample code above i am able to loop through each row in the excel and set values to the variables.But the Requirement is not to attach excel as a Data Driven Source and not to use Oledb way to query things in Excel.They said me to use Microsoft.Office.Interop.Excel; .
Can any one help me with how to change the code to retrive the data in excel , row by row and assign cells to respective variables using different approach.??? This is a c# Unittest framework
See http://msdn.microsoft.com/en-us/library/office/microsoft.office.interop.excel(v=office.11).aspx.
This might be a duplicate of the C#: How to access an Excel cell?, which has examples in the answers using Interop.
Warning
Because you mention webservices and Office interop in the same question:
See http://support.microsoft.com/kb/257757 for more information.
OOXml
If possible, you should be using OOXml, which is the recommended way to work with Office documents programmatically.