public TelephoneNumber GetById(TelephoneNumber telephone) { var numberServices = new TelephoneNumberDbOperations(); numberServices.GetById(telephone); return(telephone); }
public void When_GetById_Is_Called_It_Should_Return_The_TelephoneNumber_With_The_Id_And_Pass() { var telephoneDbOperation = new TelephoneNumberDbOperations(); var telephone = new TelephoneNumber() { UId = 3, PhoneNumber = "+91 9920802227", NumberType = "Office" }; var pid = telephoneDbOperation.Create(telephone); telephone.PId = pid; var person = telephoneDbOperation.GetById(telephone); Assert.Pass(); }