Example #1
0
        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);
        }
Example #2
0
 public Contact GetContact(int index)
 {
     return(_localApi.GetContact(index));
 }