public void GetTestOfferQuotaExpressionTest()
        {
            var IOffersManager = new Mock<IOffersManager>();
            OkNegotiatedContentResult<OfferQuotaCellsResponse> response;
            QuotaExpressionsObjectResponse OfferQuotaCellData = new QuotaExpressionsObjectResponse()
            {
                Errors = new List<ErrorObject>(),
                QuotaCells = "UnitTest"
            };

            IOffersManager.Setup(i => i.GetOfferQuotaExpression(It.IsAny<HttpRequestMessage>(), It.IsAny<string>(), new Guid().ToString())).Returns(OfferQuotaCellData);
            controller = new InitController("Testoffers").initTestOffersController(IOffersManager.Object);
            response = controller.GetQuotaExpressions(new Guid().ToString()) as OkNegotiatedContentResult<OfferQuotaCellsResponse>;

            Assert.NotNull(response.Content.Data.QuotaCells);
            Assert.Null(response.Content.Data.Errors);
        }
        public void GetTestOfferQuotaExpressionFailureTest()
        {
            var IOffersManager = new Mock<IOffersManager>();
            OkNegotiatedContentResult<OfferQuotaCellsResponse> response;
            QuotaExpressionsObjectResponse OfferQuotaCellData = new QuotaExpressionsObjectResponse()
            {
                Errors = new List<ErrorObject>()
                {
                    new ErrorObject(ErrorKey.ERR_INTERNAL_FATAL)
                },
                QuotaCells = null
            };

            IOffersManager.Setup(i => i.GetOfferQuotaExpression(It.IsAny<HttpRequestMessage>(), It.IsAny<string>(), new Guid().ToString())).Returns(OfferQuotaCellData);
            controller = new InitController("Testoffers").initTestOffersController(IOffersManager.Object);
            response = controller.GetQuotaExpressions(new Guid().ToString()) as OkNegotiatedContentResult<OfferQuotaCellsResponse>;

            Assert.Null(response.Content.Data.QuotaCells);
            Assert.NotNull(response.Content.Data.Errors);
            Assert.True(response.Content.Data.Errors.Exists(i => i.Code == 3000));
        }