public void TryGet_Should_Return_True_And_Item_If_Item_Exists(IRepository<Contact, string> repository)
        {
            var contact = new Contact { Name = "Test User", ContactTypeId = 1 };
            repository.Add(contact);

            Contact result;
            repository.TryGet(contact.ContactId, out result).ShouldBeTrue();
            result.Name.ShouldEqual(contact.Name);
            result.ContactTypeId.ShouldEqual(contact.ContactTypeId);
        }
 public void TryGet_Should_Return_False_And_Null_If_Item_Does_Not_Exists(IRepository<Contact, string> repository)
 {
     Contact result;
     repository.TryGet(string.Empty, out result).ShouldBeFalse();
     result.ShouldBeNull();
 }