Skip to content

Commit

Permalink
refactor: remove unessery usings
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilbaczek committed Oct 26, 2024
1 parent 907d133 commit 8c75e5a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 53 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ namespace EvolutionaryArchitecture.Fitnet.Contracts.Core.UnitTests.SignContract;
using Common;
using Common.Builders;
using Core.SignContract;
using Core.SignContract.Signatures;

public sealed class SignContractTests
{
private const string Signature = "John Doe";
private const string SignatureValue = "John Doe";

[Theory]
[ClassData(typeof(SignContractTestData))]
Expand All @@ -20,7 +21,7 @@ internal void Given_sign_contract_Then_expiration_date_is_set_to_contract_durati
Contract contract = ContractBuilder
.Prepared()
.PreparedAt(preparedAt);
var signature = Core.SignContract.Signatures.Signature.From(signedAt, Signature);
var signature = Signature.From(signedAt, SignatureValue);

// Act
var signResult = contract.Sign(signature, fakeNow);
Expand All @@ -39,10 +40,10 @@ internal void Given_sign_contract_Then_contracts_becomes_binding_contract()
// Arrange
Contract contract = ContractBuilder
.Prepared();
var digitalSignature = Core.SignContract.Signatures.Signature.From(SignedAt, Signature);
var signature = Signature.From(SignedAt, SignatureValue);

// Act
var signResult = contract.Sign(digitalSignature, FakeNow);
var signResult = contract.Sign(signature, FakeNow);

// Assert
var @event = signResult.Value.GetPublishedEvent<BindingContractStartedEvent>();
Expand Down

This file was deleted.

0 comments on commit 8c75e5a

Please sign in to comment.