public void DisposeCanBeCalledSafelyIfContextIsNull() { var client = new SnapshotEFClient(null); Action act = () => client.Dispose(); act.Should() .NotThrow <NullReferenceException>(); }
public void ClientShouldDisposeDbContext() { var context = new HestiaContextSpy(Options); var client = new SnapshotEFClient(context); client.Dispose(); context.IsDisposed.Should() .BeTrue(); }