public void ApiAllSecuritiesMfNoExceptionHttpResponseMessageMoqTest()
        {
            var moqsecurityrepository = new Mock<ISecuritiesMfRepository>();
            IQueryable<SecurityMutualFundDto> securityMutualFundDtos = GetsecuritiesMfsList().AsQueryable();
            moqsecurityrepository.Setup(x => x.GetListSecurityMf()).Returns(securityMutualFundDtos.AsQueryable());
            var apicontroller = new SecuritiesApiMfController(moqsecurityrepository.Object)
            {
                Request = new HttpRequestMessage(),
                Configuration = new HttpConfiguration()
            };

            var response = apicontroller.Get();
            IQueryable<SecurityMutualFundDto> testsecurityMutualFundDtos;
            Assert.IsTrue(response.TryGetContentValue<IQueryable<SecurityMutualFundDto>>(out testsecurityMutualFundDtos));

            Assert.AreEqual(testsecurityMutualFundDtos.Count(), securityMutualFundDtos.Count());
            Assert.IsNotNull(testsecurityMutualFundDtos);
            Assert.IsInstanceOf<IQueryable<SecurityMutualFundDto>>(testsecurityMutualFundDtos);

            moqsecurityrepository.VerifyAll();
        }
        public void ApiSingleSecurityMfNoExceptionHttpResponseMessageMoqTest()
        {
            var moqsecurityrepository = new Mock<ISecuritiesMfRepository>();
            SecurityMutualFundDto securityMutualFundDto = GetsecuritiesMfsList().FirstOrDefault();

            moqsecurityrepository.Setup(x => x.GetSecurityMfBySymbol("Demo1")).Returns(securityMutualFundDto);

            var apicontroller = new SecuritiesApiMfController(moqsecurityrepository.Object)
            {
                Request = new HttpRequestMessage(),
                Configuration = new HttpConfiguration()
            };

            var response = apicontroller.Get("Demo1");
            SecurityMutualFundDto testsecurityMutualFundDto;
            Assert.IsTrue(response.TryGetContentValue<SecurityMutualFundDto>(out testsecurityMutualFundDto));

            Assert.IsNotNull(securityMutualFundDto);
            Assert.AreEqual(testsecurityMutualFundDto.Id, securityMutualFundDto.Id);
            Assert.IsInstanceOf<SecurityMutualFundDto>(testsecurityMutualFundDto);

            moqsecurityrepository.VerifyAll();
        }