public void Apply_ShouldAddTheJob_ToTheFailedSet()
        {
            var handler = new FailedStateHandler();
            handler.Apply(_context.Object, _transaction);

            _transaction.Received().AddToSet("failed", JobId, Arg.Any<double>());
        }
        public void Apply_ShouldAddTheJob_ToTheFailedSet()
        {
            var handler = new FailedStateHandler();
            handler.Apply(_context.Object, _transaction.Object);

            _transaction.Verify(x => x.AddToSet(
                "failed", JobId, It.IsAny<double>()));
        }
Esempio n. 3
0
        public void Apply_ShouldAddTheJob_ToTheFailedSet()
        {
            var handler = new FailedStateHandler();

            handler.Apply(_context.Object, _transaction);

            _transaction.Received().AddToSet("failed", JobId, Arg.Any <double>());
        }
Esempio n. 4
0
        public void Apply_ShouldAddTheJob_ToTheFailedSet()
        {
            var handler = new FailedStateHandler();

            handler.Apply(_context.Object, _transaction.Object);

            _transaction.Verify(x => x.AddToSet(
                                    "failed", JobId, It.IsAny <double>()));
        }