Esempio n. 1
0
        public void FindTestNotFoundinExistingSubscriber()
        {
            //Arrange
            subscriberrepository repository = new subscriberrepository();
            var subscriberlist = repository.Retrieve();
            //Act
            var result = repository.Find(subscriberlist, 22);

            //Assert
            Assert.IsNull(result);
        }
Esempio n. 2
0
        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);
            }
        }