public void ResolvingAnOptionWhenTypeIsNotRegisteredReturnsNone()
        {
            var containerBuilder = new ContainerBuilder();

            containerBuilder.RegisterOption();
            using var container = containerBuilder.Build();
            FunctionalAssert.IsNone(container.Resolve <Option <ILogger> >());
        }
Beispiel #2
0
 public async Task ReturnsNoneWhenNoMatchingEntitiesAreFound()
 {
     using var db = new TestContext();
     FunctionalAssert.IsNone(await db.People.SingleOrNoneAsync());
 }
        public void DeserializesNoneFromNull()
        {
            const string json = @"null";

            FunctionalAssert.IsNone(JsonConvert.DeserializeObject <Option <string> >(json, Settings));
        }