public GetMovementDateByMovementIdHandlerTests()
        {
            movement = new TestableMovement
            {
                Id = MovementId,
                Date = MovementDate
            };

            repository = A.Fake<IMovementRepository>();
            A.CallTo(() => repository.GetById(MovementId)).Returns(movement);

            handler = new GetMovementDateByMovementIdHandler(repository);
            request = new GetMovementDateByMovementId(MovementId);
        }
Пример #2
0
        public GetMovementDateByMovementIdHandlerTests()
        {
            movement = new TestableMovement
            {
                Id   = MovementId,
                Date = MovementDate
            };

            repository = A.Fake <IMovementRepository>();
            A.CallTo(() => repository.GetById(MovementId)).Returns(movement);

            handler = new GetMovementDateByMovementIdHandler(repository);
            request = new GetMovementDateByMovementId(MovementId);
        }