public void DealController_GetAllTestCase()
        {
            DealContext dbContext  = LoadDependencies <DealContext>();
            var         mockRepo   = new DealRepository(dbContext);
            var         logger     = new FlatFileLogger();
            var         controller = new DealController(mockRepo, logger);
            var         result     = controller.Get();

            Assert.NotNull(result);
            var lstDeal = Assert.IsAssignableFrom <IList <Deal> >((result as OkObjectResult).Value as IList <Deal>);

            Assert.Equal(2, lstDeal.Count);
        }
        public void GetAllDealTestOkResult()
        {
            var response = _controller.Get();

            Assert.IsInstanceOf <OkObjectResult>(response);
        }