Exemple #1
0
        public string GetItmesAsHtml(DateTime statusDate, string memberName, bool validateAganistJira)
        {
            var dataRows = _oldbConnection.GetInProgessRowsExcludingRegression(statusDate, memberName);

            return(_sectionHelper.CreateSection(
                       "In Progress",
                       dataRows,
                       validateAganistJira));
        }
Exemple #2
0
        protected void BaseSetUp(bool validate)
        {
            _oldbConnection = Mock.Create <IOLDBConnection>();

            _dataRow = this.GetDataRows();

            Mock.Arrange(() => _oldbConnection.GetInProgessRowsExcludingRegression(Arg.IsAny <DateTime>(), string.Empty))
            .Returns(new[] { _dataRow }).OccursOnce();

            _windsorContainer = new WindsorContainer();

            _windsorContainer.Register(Component.For <IOutPutGenerator>().ImplementedBy <XMLOutPutGenerator>());

            CastleWireUp.WireUp(_windsorContainer);
            InProgess inProgess = new InProgess(_windsorContainer.Resolve <ISectionHelper>(), _oldbConnection);

            var xml = inProgess.GetItmesAsHtml(DateTime.Now, string.Empty, validate);

            _xdoc = XDocument.Parse(xml);
        }