public void ApiAllSecuritiesMfExceptionExpectedMoqTest()
        {
            var moqsecurityrepository = new Mock<ISecuritiesMfRepository>();
            IQueryable<SecurityMutualFundDto> securityMutualFundDtos = GetsecuritiesMfsList().AsQueryable();
            moqsecurityrepository.Setup(x => x.GetListSecurityMf()).Throws<ArgumentNullException>();
            var apicontroller = new SecuritiesWebApiMfController(moqsecurityrepository.Object);

            var secmfs = apicontroller.GetIQueryable();
            Assert.IsInstanceOf<IQueryable<SecurityMutualFundDto>>(secmfs);

            moqsecurityrepository.VerifyAll();
        }
        public void ApiAllSecuritiesMfNoExceptionMoqTest()
        {
            var moqsecurityrepository = new Mock<ISecuritiesMfRepository>();
            IQueryable<SecurityMutualFundDto> securityMutualFundDtos = GetsecuritiesMfsList().AsQueryable();
            moqsecurityrepository.Setup(x => x.GetListSecurityMf()).Returns(securityMutualFundDtos.AsQueryable());
            var apicontroller = new SecuritiesWebApiMfController(moqsecurityrepository.Object);

            var secmfs = apicontroller.GetIQueryable();
            Assert.AreEqual(secmfs.Count(),securityMutualFundDtos.Count());
            Assert.IsNotNull(secmfs);
            Assert.IsInstanceOf<IQueryable<SecurityMutualFundDto>>(secmfs);

            moqsecurityrepository.VerifyAll();
        }