public async Task StoreApi_CompareCurrentApiMetadataToPriorRun() { var fileName = $"{relativePath}{typeof(StoreApi).Name}-ApiMetadata.txt"; File.Exists(fileName).Should().BeTrue(); var oldReport = File.ReadAllText(fileName); var newReport = await RestierTestHelpers.GetApiMetadata <StoreApi, DbContext>(serviceCollection : (services) => { services.AddTestStoreApiServices(); }); oldReport.Should().BeEquivalentTo(newReport.ToString()); }
public async Task LibraryApi_CompareCurrentApiMetadataToPriorRun() { var fileName = $"{relativePath}{typeof(LibraryApi).Name}-ApiMetadata.txt"; File.Exists(fileName).Should().BeTrue(); var oldReport = File.ReadAllText(fileName); var newReport = await RestierTestHelpers.GetApiMetadata <LibraryApi, LibraryContext>(); oldReport.Should().BeEquivalentTo(newReport.ToString()); }