Skip to content

Commit c5befce

Browse files
committed
Make IEntitiesContext implement IDisposable (#7164)
1 parent 8e21e1c commit c5befce

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

src/NuGetGallery.Core/Entities/IEntitiesContext.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
// Copyright (c) .NET Foundation. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33

4+
using System;
45
using System.Data.Entity;
56
using System.Threading.Tasks;
67
using NuGet.Services.Entities;
78

89
namespace NuGetGallery
910
{
10-
public interface IEntitiesContext
11+
public interface IEntitiesContext : IDisposable
1112
{
1213
DbSet<Certificate> Certificates { get; set; }
1314
DbSet<Package> Packages { get; set; }

tests/NuGetGallery.Facts/TestUtils/FakeEntitiesContext.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,5 +237,9 @@ public static DbSet<T> CreateDbSet<T>() where T : class
237237

238238
return mockSet.Object;
239239
}
240+
241+
public void Dispose()
242+
{
243+
}
240244
}
241245
}

0 commit comments

Comments
 (0)