dotnet / EntityFramework.Docs

Documentation for Entity Framework Core and Entity Framework 6
https://docs.microsoft.com/ef/
Creative Commons Attribution 4.0 International
1.62k stars 1.96k forks source link

context.SaveChanges(); statement duplicated #2070

Open vcrobe opened 4 years ago

vcrobe commented 4 years ago

It's used in both method of the class BlogServiceTests but the method BusinessLogic.BlogService.Add(string url) also use context.SaveChanges();


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

vcrobe commented 4 years ago

The same happens in this topic https://docs.microsoft.com/en-us/ef/core/miscellaneous/testing/in-memory