コード例 #1
0
        protected void SetUp()
        {
            mockHistoryParser = new DynamicMock(typeof(IHistoryParser));
            CreateProcessExecutorMock(BitKeeper.DefaultExecutable);
            ProcessExecutor executor = (ProcessExecutor)mockProcessExecutor.MockInstance;
            IHistoryParser  parser   = (IHistoryParser)mockHistoryParser.MockInstance;

            bitkeeper = new BitKeeper(parser, executor);
            from      = new DateTime(2001, 1, 21, 20, 0, 0);
            to        = from.AddDays(1);
        }
コード例 #2
0
        protected void SetUp()
        {
            mockHistoryParser = new Mock <IHistoryParser>();
            CreateProcessExecutorMock(BitKeeper.DefaultExecutable);
            ProcessExecutor executor = (ProcessExecutor)mockProcessExecutor.Object;
            IHistoryParser  parser   = (IHistoryParser)mockHistoryParser.Object;

            bitkeeper = new BitKeeper(parser, executor);
            from      = new DateTime(2001, 1, 21, 20, 0, 0);
            to        = from.AddDays(1);
        }