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