Skip to content

Commit

Permalink
Use factory
Browse files Browse the repository at this point in the history
  • Loading branch information
Kristian F. Thomsen committed Mar 20, 2023
1 parent 66c8c3b commit 59f1588
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
using Infrastructure.Configuration.Serialization;
using Infrastructure.OutgoingMessages.Common;
using Infrastructure.OutgoingMessages.RejectRequestChangeAccountingPointCharacteristics;
using Tests.Factories;
using Tests.Infrastructure.OutgoingMessages.Asserts;
using Xunit;
using MarketActivityRecord = Domain.OutgoingMessages.RejectRequestChangeAccountingPointCharacteristics.MarketActivityRecord;
Expand All @@ -39,21 +40,19 @@ namespace Tests.Infrastructure.OutgoingMessages.RejectRequestChangeAccountingPoi
public class RejectRequestChangeAccountingPointCharacteristicsDocumentWriterTests
{
private readonly RejectRequestChangeAccountingPointCharacteristicsMessageWriter _xmlMessageWriter;
private readonly ISystemDateTimeProvider _systemDateTimeProvider;
private readonly IMessageRecordParser _messageRecordParser;
private ISchemaProvider? _schemaProvider;

public RejectRequestChangeAccountingPointCharacteristicsDocumentWriterTests()
{
_systemDateTimeProvider = new SystemDateTimeProvider();
_messageRecordParser = new MessageRecordParser(new Serializer());
_xmlMessageWriter = new RejectRequestChangeAccountingPointCharacteristicsMessageWriter(_messageRecordParser);
}

[Fact]
public async Task Document_is_valid()
{
var header = new MessageHeader(ProcessType.MoveIn.Name, "SenderId", MarketRole.MeteringPointAdministrator.Name, "ReceiverId", MarketRole.EnergySupplier.Name, Guid.NewGuid().ToString(), _systemDateTimeProvider.Now());
var header = MessageHeaderFactory.Create();
var marketActivityRecords = new List<MarketActivityRecord>()
{
new(Guid.NewGuid().ToString(), Guid.NewGuid().ToString(), Guid.NewGuid().ToString(), "FakeMarketEvaluationPointId", new List<Reason>()
Expand Down

0 comments on commit 59f1588

Please sign in to comment.