public void SelectPublishedAttributesFailureTest()
        {
            var IAttributeRepository = new Mock<IAttributeRepository>();
            List<AttributeApiObject> data = new List<AttributeApiObject>();
            IAttributeRepository.Setup(i => i.SelectPublishedAttributes()).Returns(data);
            AttributesManager = new InitClass().initAttributesManager(IAttributeRepository.Object);

            var response = AttributesManager.GetPublishedAttributes(Request, It.IsAny<string>());

            Assert.Null(response.Attributes);
            Assert.True(response.Errors.Exists(i => i.Code == 2016));
        }
        public void SelectPublishedAttributesTest()
        {
            var IAttributeRepository = new Mock<IAttributeRepository>();
            List<AttributeApiObject> data = new List<AttributeApiObject>()
            {
               new AttributeApiObject()
            };

            IAttributeRepository.Setup(i => i.SelectPublishedAttributes()).Returns(data);
            AttributesManager = new InitClass().initAttributesManager(IAttributeRepository.Object);

            var response = AttributesManager.GetPublishedAttributes(Request, It.IsAny<string>());

            Assert.NotEmpty(response.Attributes);
            Assert.Empty(response.Errors);
        }
        public AttributesManager initAttributesManager(IAttributeRepository IAttributeRepository)
        {
            AttributesManager AttributesManager = new AttributesManager(IAttributeRepository);

            return AttributesManager;
        }