public static void InitClass(TestContext context)
        {
            dataSource = new TestDataSource();
            ScarfConfiguration.DataSourceFactory = new TestDataSourceFactory(dataSource);

            ScarfConfiguration.ConfigurationSection = ConfigurationMocks.CreateNewScarfSectionMock().Object;
        }
        protected static void InitTests()
        {
            dataSource = new TestDataSource();
            ScarfConfiguration.DataSourceFactory = new TestDataSourceFactory(dataSource);

            _scarfSectionMock = ConfigurationMocks.CreateNewScarfSectionMock();
            ScarfConfiguration.ConfigurationSection = _scarfSectionMock.Object;
        }
        public static void InitClass(TestContext context)
        {
            dataSource = new TestDataSource();
            ScarfConfiguration.DataSourceFactory = new TestDataSourceFactory(dataSource);

            var scarfSectionMock = ConfigurationMocks.CreateNewScarfSectionMock();

            debugElementMock = new Mock<DebugElement>();
            auditElementMock = new Mock<AuditElement>();
            accessElementMock = new Mock<AccessElement>();
            actionElementMock = new Mock<ActionElement>();

            scarfSectionMock.SetupGet(s => s.Access).Returns(accessElementMock.Object);
            scarfSectionMock.SetupGet(s => s.Action).Returns(actionElementMock.Object);
            scarfSectionMock.SetupGet(s => s.Audit).Returns(auditElementMock.Object);
            scarfSectionMock.SetupGet(s => s.Debug).Returns(debugElementMock.Object);

            ScarfConfiguration.ConfigurationSection = scarfSectionMock.Object;
        }