Esempio n. 1
0
        public void Execute(string inputFileName)
        {
            var seqServer = new StubSeqEndpoint();
            var result    = new Importer(seqServer)
                            .Import(TestHelper.GetFilePath(inputFileName));

            result.ShouldBeSuccessful();
            Approvals.VerifyJson(seqServer.LogsAsJson);
        }
Esempio n. 2
0
        public void Execute(string inputFileName, [CallerMemberName] string testName = null)
        {
            var seqServer = new StubSeqEndpoint();
            var result    = new Importer(seqServer)
                            .Import(TestHelper.GetFilePath(inputFileName));

            result.ShouldBeSuccessful();
            this.Assent(
                seqServer.LogsAsJson,
                new Configuration().UsingExtension("json"),
                testName: testName
                );
        }