Пример #1
0
        public async Task TestPatchVersionAgainstMatchStartDate([ValueSource("_testData")] TestData testData)
        {
            var patchRepository = new PatchRepository(MongoClient);
            var patches         = TestDtoHelper.CreateFakePatches();
            await patchRepository.InsertPatches(patches);

            Assert.AreEqual(await patchRepository.GetPatchVersionFromDate(testData.StartDate), testData.ExpectedResult);
        }