How to create a mock instance of IOptions<MyOption>?
Use helper class Microsoft.Extensions.Options.Options
Try replacing
option = new Options<MyOptions>();
with
option = Options.Create(new MyOptions());
What about:
var optionsMock = new Mock<IOptions<MyOptions>>();
optionsMock.SetupGet(o => o.Value).Returns(new MyOptions());