[TestMethod()]//Check if it returns a list of NexusMaster. public void GetNexusesTestToCheckIfItReturnsNexusMaster() { //Arrange var AccountInfo = AvaTaxProfileAssistantHelper.InsertAccountInfo(input.AccountCredentials); int TotCntCmpLoc = input.Nexus.CompanyLocations.Count(); bool SaveNow = false; //Act for (int i = 0; i < TotCntCmpLoc; i++) { if (i % 500 == 0 || i == (TotCntCmpLoc - 1)) { SaveNow = true; } else { SaveNow = false; } AvaTaxProfileAssistantHelper.InsertNexusCompanyLocation(input.Nexus.CompanyLocations[i], AccountInfo.ID); AvaTaxProfileAssistantHelper.InsertNexusWareHourseLocation(input.Nexus.WareHouseLocations[i], AccountInfo.ID); AvaTaxProfileAssistantHelper.InsertNexusPreviousCustomerLocation(input.Nexus.PreviousCustomerLocations[i], AccountInfo.ID); } var result = AvaTaxProfileAssistantHelper.GetNexuses(AccountInfo.ID); //Assert Assert.IsInstanceOfType(result, typeof(List <NexusMaster>), "Incorrect result type returned!!"); }