Commit b21475aa authored by Ariel Piñeiro's avatar Ariel Piñeiro

Fixed warnings.

parent c868f08b
...@@ -24,7 +24,7 @@ namespace CleanArchitecture.Tests.Core.Entities ...@@ -24,7 +24,7 @@ namespace CleanArchitecture.Tests.Core.Entities
item.MarkComplete(); item.MarkComplete();
Assert.Equal(1, item.Events.Count()); Assert.Single(item.Events);
Assert.IsType<ToDoItemCompletedEvent>(item.Events.First()); Assert.IsType<ToDoItemCompletedEvent>(item.Events.First());
} }
} }
......
...@@ -26,7 +26,7 @@ namespace CleanArchitecture.Tests.Integration.Data ...@@ -26,7 +26,7 @@ namespace CleanArchitecture.Tests.Integration.Data
// Create a new options instance telling the context to use an // Create a new options instance telling the context to use an
// InMemory database and the new service provider. // InMemory database and the new service provider.
var builder = new DbContextOptionsBuilder<AppDbContext>(); var builder = new DbContextOptionsBuilder<AppDbContext>();
builder.UseInMemoryDatabase() builder.UseInMemoryDatabase("db")
.UseInternalServiceProvider(serviceProvider); .UseInternalServiceProvider(serviceProvider);
return builder.Options; return builder.Options;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment