public void DeleteIFSP_Success()
        {
            // Act
            var response = controller.RemoveIFSP(defaultDeleteIFSPID, DateTime.UtcNow);

            // Assert
            Assert.IsNotNull(response, "Response can not be null");
            Assert.IsTrue(response.RowAffected > 0, "IFSP could not be deleted.");
        }
        public void RemoveIFSP_Success()
        {
            //Act
            Mock_IFSP();
            var deleteIFSPResult = ifspController.RemoveIFSP(_defaultDeleteIFSPId, DateTime.UtcNow);
            var response         = deleteIFSPResult as HttpResult <Response <bool> >;

            //Assert
            Assert.IsNotNull(response, "Response can't be null");
            Assert.IsTrue(ifsps.Count() == 0, "IFSP could not be deleted.");
        }
        public void RemoveIFSP_Success()
        {
            // Arrange
            ifsps = new List <IFSPDetailModel>();
            ifsps.Add(ifspDataForSuccess);
            var ifspResp = new Response <bool>();

            mock.Setup(r => r.RemoveIFSP(It.IsAny <long>(), DateTime.UtcNow))
            .Callback((long id) => ifsps.Remove(ifsps.Find(ifsp => ifsp.IFSPID == id)))
            .Returns(ifspResp);

            //Act
            var deleteIfspResult = ifspController.RemoveIFSP(defaultDeleteContactId, DateTime.UtcNow);
            var response         = deleteIfspResult as HttpResult <Response <bool> >;

            //Assert
            Assert.IsNotNull(response, "Response can't be null");
            Assert.IsTrue(ifsps.Count() == 0, "IFSP could not be deleted.");
        }