public void GetContact(int index, bool isExeption) { //Given Contact result; if (isExeption) { result = null; } else { result = _contact; _localApi.AddContact(_contact); } //When var actual = _localApi.GetContact(index); //Then Assert.AreEqual(result, actual); }
public Contact GetContact(int index) { return(_localApi.GetContact(index)); }