Beispiel #1
0
        public async Task SaveAsyncShouldInsertHistory()
        {
            var history = new RadarTechno.History.History("author", "entity-technology", "id1", "diff4");
            await _repository.SaveAsync(history);

            var result = await _repository.FindByElementIdAsync("id1", "entity-technology");

            Assert.IsAssignableFrom <IEnumerable <RadarTechno.History.History> >(result);
            Assert.Equal(4, Enumerable.Count(result));
        }