loic-sharma / BaGet

A lightweight NuGet and symbol server
https://loic-sharma.github.io/BaGet/
MIT License
2.57k stars 639 forks source link

Fix unit tests #770

Open 0xced opened 1 year ago

0xced commented 1 year ago

The implicit conversion from the default DateTime to DateTimeOffset was throwing System.ArgumentOutOfRangeException

The UTC time represented when the offset is applied must be between year 0 and 10,000. (Parameter 'offset')

Resolving services from the root provider was throwing System.InvalidOperationException

Cannot resolve scoped service 'BaGet.Core.IContext' from root provider.