public static List <DiffLog> GenerateDiffs(int count = 2) { return(new List <DiffLog>() { DiffLog.Create("NDWH", "PatientExtract"), DiffLog.Create("NDWH", "PatientArtExtract") }); }
public void should_Save_Log_New() { var diffLog = DiffLog.Create("NDWH", "PatientVisitExtract"); _repository.SaveLog(diffLog); var context = TestInitializer.ServiceProvider.GetService <ExtractsContext>(); var savedDiffLog = context.DiffLogs.Find(diffLog.Id); Assert.NotNull(savedDiffLog); }