Ejemplo n.º 1
0
        public async void Update_LogError()
        {
            using (var context = Seed())
            {
                var repository = new LogErrorRepository(context);

                LogError result = await repository.GetByIdAsync(1);

                result.Archive();

                repository.Update(result);

                int updated = await repository.UnitOfWork.SaveChangesAsync();

                updated.Should().BeGreaterThan(0);
            }
        }