public void GetIFSP_Success()
        {
            // Act
            var response = controller.GetIFSPList(defaultContactId).Result;

            // Assert
            Assert.IsNotNull(response, "Response can not be null");
            Assert.IsNotNull(response.DataItems, "DataItems can not be null");
            Assert.IsTrue(response.DataItems.Count > 0, "Atleast one IFSP must exists.");
        }
        public void GetIFSPList_Success()
        {
            //Arrange
            Mock_IFSP();

            //Act
            var getIfspResult = ifspController.GetIFSPList(_defaultContactId);
            var response      = getIfspResult as HttpResult <Response <IFSPDetailModel> >;

            //Assert
            Assert.IsNotNull(response, "Response can't be null");
            Assert.IsNotNull(response.Value, "Response Value can't be null");
            Assert.IsNotNull(response.Value.DataItems, "DataItems can't be null");
            Assert.IsTrue(response.Value.DataItems.Count() > 0, "Atleast one IFSP must exist.");
        }
        public void GetIFSPList_Success()
        {
            // Arrange
            PrepareResponse(ifspDataForSuccess);

            mock.Setup(r => r.GetIFSPList(It.IsAny <long>()))
            .Callback((long id) => { ifspResponse.DataItems = ifsps.Where(ifsp => ifsp.ContactID == id).ToList(); })
            .Returns(ifspResponse);

            //Act
            var getIFSPResult = ifspController.GetIFSPList(defaultContactId);
            var response      = getIFSPResult as HttpResult <Response <IFSPDetailModel> >;

            //Assert
            Assert.IsNotNull(response, "Response can't be null");
            Assert.IsNotNull(response.Value, "Response value can't be null");
            Assert.IsNotNull(response.Value.DataItems, "Data items can't be null");
            Assert.IsTrue(response.Value.DataItems.Count() > 0, "Atleast one IFSP must exists.");
        }