Example #1
0
        public void NoOptions_OnlyDefaultServicesRegistered()
        {
            var fakeCollection = new TestServiceCollection();

            fakeCollection.AddSeaOrDewHandlers();

            ServicesAssert.OnlyHandlerResolversRegistered(fakeCollection);
        }
Example #2
0
        public void NullLambda_CorrectlyAddsMainServices()
        {
            var fakeCollection = new TestServiceCollection();

            fakeCollection.AddSeaOrDewHandlers((Action <SeaOrDewOptions>)null);

            ServicesAssert.OnlyHandlerResolversRegistered(fakeCollection);
        }
Example #3
0
        public void PassOptions_CorrectlyAddsMainServices()
        {
            var fakeCollection = new TestServiceCollection();

            fakeCollection.AddSeaOrDewHandlers(new SeaOrDewOptions());

            ServicesAssert.OnlyHandlerResolversRegistered(fakeCollection);
        }
Example #4
0
        public void OptionsLambda_CorrectlyAddsMainServices()
        {
            var fakeCollection = new TestServiceCollection();

            fakeCollection.AddSeaOrDewHandlers(options =>
            {
            });

            ServicesAssert.OnlyHandlerResolversRegistered(fakeCollection);
        }