//[Theory, AutoData] public async Task Send_command_to_parse_nonexistent_jdx_should_publish_one_FileParseFailed_event([Frozen] FileParseFailed expectedEvent) { var blobId = Guid.NewGuid(); //await fixture.Bus.Send(new ParseFile(expectedEvent.Id, expectedEvent.CorrelationId, expectedEvent.UserId, BUCKET, blobId)); //fixture.AllEvents.Should().ContainSingle(e => e is FileParseFailed); //var @event = fixture.AllEvents.Single(); //@event.ShouldBeEquivalentTo(expectedEvent, // options => options // .Excluding(p => p.TimeStamp) // .Excluding(p => p.Version) // ); await Task.CompletedTask; }
//[Theory, AutoData] public async Task Send_command_to_parse_empty_jdx_should_publish_one_FileParseFailed_event([Frozen] FileParseFailed expectedEvent) { var blobId = await _fixture.BlobStorage.AddFileAsync("empty.jdx", Resource.empty, "chemical/x-jcamp-dx", BUCKET); //await fixture.Bus.Send(new ParseFile(expectedEvent.Id, expectedEvent.CorrelationId, expectedEvent.UserId, BUCKET, blobId)); //fixture.AllEvents.Should().ContainSingle(e => e is FileParseFailed); //var @event = fixture.AllEvents.Single(); //@event.ShouldBeEquivalentTo(expectedEvent, // options => options // .Excluding(p => p.TimeStamp) // .Excluding(p => p.Version) // ); }