Skip to content

Commit

Permalink
refactor: remove unessery test
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilbaczek committed Feb 1, 2024
1 parent 765bd92 commit 9dc01ce
Showing 1 changed file with 0 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,21 +40,6 @@ internal void Given_sign_contract_Then_contracts_becomes_binding_contract()
bindingContract.Should().BeOfType<BindingContract>();
}

[Fact]
internal void Given_sign_contract_When_contract_is_already_signed_Then_throws_contract_already_signed_exception()
{
// Arrange
var contract = PrepareContract(PreparedAt);
contract.Sign(SignedAt, FakeNow);

// Act
var act = () => contract.Sign(SignedAt, FakeNow);

// Assert
act.Should().Throw<ContractAlreadySignedException>().WithMessage(
"Contract is already signed");
}

private static Contract PrepareContract(DateTimeOffset preparedAt)
{
var prepareContractParameters = PrepareContractParameters.GetValid();
Expand Down

0 comments on commit 9dc01ce

Please sign in to comment.