/// <summary> /// Get Contact Details. /// </summary> /// <returns>Returns true if success, else false.</returns> public bool GetContactDetails(out Contact contactObj) { var succeed = false; contactObj = null; if (this._contactRepository.GetContactDetails(out contactObj)) succeed = true; return succeed; }
/// <summary> /// Get Contact Details /// </summary> /// <returns>Returns true if success, else false</returns> public bool GetContactDetails(out Contact contactObj) { var succeed = false; contactObj = null; using (this._context = new dbContext()) { contactObj = this._context.Contact.FirstOrDefault(); succeed = true; } return succeed; }
public void InitializeTests() { _contact = new Contact { Address = "Greater London", DateCreated = DateTime.Now, GeneralEmail = "*****@*****.**", IsDeleted = false, id = 1, MainPhone = "+38825498755" }; _mockContactRepository = new Mock<IContactRepository>(); }
public void TearDownObjects() { _contact = null; _contactService = null; _mockContactRepository = null; }