public void DealCoveragesManager_Get_ShouldThrow_IllegalArgumentAPIException(int dealNumber)
        {
            //Arrange
            SetupUserIdentity();

            // Arrange
            dealCoveragesRepository = new Mock <IDealCoveragesRepository>();

            //SetupDealCoveragesRepository(dealCoveragesRepository, dealNumber);
            IList <Data.Models.grs_VGrsDealCoverage> CoveragesDbData = new List <Data.Models.grs_VGrsDealCoverage>
            {
                new Data.Models.grs_VGrsDealCoverage
                {
                    Dealnum   = dealNumber,
                    CoverId   = 13,
                    CoverName = "California Earthquake"
                }
            };

            // Get method
            dealCoveragesRepository.Setup(p => p.GetDealCoverages(dealNumber)).Returns(CoveragesDbData);

            DealCoveragesManager dealCovergaresManager = new DealCoveragesManager(userManager.Object, cacheStoreManager.Object, mockLogManager.Object, dealCoveragesRepository.Object, new Mock <IEntityLockManager>().Object, transformationManager);

            //Assert
            Assert.Throws <IllegalArgumentAPIException>(delegate { dealCovergaresManager.GetDealCoverages(dealNumber); });
        }
        public void DealCoveragesManager_Get_ShouldCall_GetCoverages(int dealNumber)
        {
            //Arrange
            SetupUserIdentity();

            // Arrange
            dealCoveragesRepository = new Mock <IDealCoveragesRepository>();

            //SetupDealCoveragesRepository(dealCoveragesRepository, dealNumber);
            IList <Data.Models.grs_VGrsDealCoverage> CoveragesDbData = new List <Data.Models.grs_VGrsDealCoverage>
            {
                new Data.Models.grs_VGrsDealCoverage
                {
                    Dealnum   = dealNumber,
                    CoverId   = 13,
                    CoverName = "California Earthquake"
                }
            };

            // Get method
            dealCoveragesRepository.Setup(p => p.GetDealCoverages(dealNumber)).Returns(CoveragesDbData);

            DealCoveragesManager dealCovergaresManager = new DealCoveragesManager(userManager.Object, cacheStoreManager.Object, mockLogManager.Object, dealCoveragesRepository.Object, new Mock <IEntityLockManager>().Object, transformationManager);

            //Act
            EntityResult <IEnumerable <BLL_DealCoverages> > actual = dealCovergaresManager.GetDealCoverages(dealNumber);

            //Assert
            Assert.IsNotEmpty(actual.Data);
        }