Skip to content

Commit

Permalink
fix: remove part of using
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilbaczek committed Oct 19, 2024
1 parent 577b611 commit b29e8cb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public static ErrorOr<Contract> Prepare(
new PreviousContractHasToBeSignedRule(isPreviousContractSigned))
.Then<Contract>(_ => new Contract(customerId, preparedAt, StandardDuration));

public ErrorOr<BindingContract> Sign(SignContract.Signatures.Signature signature, DateTimeOffset now) =>
public ErrorOr<BindingContract> Sign(Signature signature, DateTimeOffset now) =>
BusinessRuleValidator.Validate(
new ContractMustNotBeAlreadySignedRule(IsSigned),
new ContractCanOnlyBeSignedWithin30DaysFromPreparationRule(PreparedAt, signature.Date))
Expand Down

0 comments on commit b29e8cb

Please sign in to comment.