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);
        }