public void FindTestNotFoundinExistingSubscriber() { //Arrange subscriberrepository repository = new subscriberrepository(); var subscriberlist = repository.Retrieve(); //Act var result = repository.Find(subscriberlist, 22); //Assert Assert.IsNull(result); }
public void FindTestExistingSubscriber() { { subscriberrepository repository = new subscriberrepository(); var subscriberlist = repository.Retrieve(); //act var result = repository.Find(subscriberlist, 2); //assert Assert.AreEqual(2, result.SubscriberId); Assert.AreEqual("sriram", result.FirstName); Assert.AreEqual("Tellapragada", result.LastName); Assert.AreEqual("*****@*****.**", result.EmailId); } }