public void CreatesMocksWithDefaultBehaviorByDefault()
        {
            var testee = new DefaultMockRepositoryProvider { Settings = new NinjectSettings() };

            var mock = testee.Instance.Create<IDummyService>();
                
            mock.Behavior.Should().Be(MockBehavior.Default);
        }
        public void CreatesMocksWithTheConfiguredMockBehavior()
        {
            var settings = new NinjectSettings();
            settings.SetMockBehavior(MockBehavior.Strict);
            var testee = new DefaultMockRepositoryProvider { Settings = settings };

            var mock = testee.Instance.Create<IDummyService>();
            mock.Behavior.Should().Be(MockBehavior.Strict);
        }
        public void CreatesMocksWithDefaultBehaviorByDefault()
        {
            var testee = new DefaultMockRepositoryProvider {
                Settings = new NinjectSettings()
            };

            var mock = testee.Instance.Create <IDummyService>();

            mock.Behavior.Should().Be(MockBehavior.Default);
        }
        public void CreatesMocksWithTheConfiguredMockBehavior()
        {
            var settings = new NinjectSettings();

            settings.SetMockBehavior(MockBehavior.Strict);
            var testee = new DefaultMockRepositoryProvider {
                Settings = settings
            };

            var mock = testee.Instance.Create <IDummyService>();

            mock.Behavior.Should().Be(MockBehavior.Strict);
        }
        public void CreatesMocksWithTheConfiguredDefaultReturnValue()
        {
            var settings = new NinjectSettings();

            settings.SetMockDefaultValue(DefaultValue.Mock);
            var testee = new DefaultMockRepositoryProvider {
                Settings = settings
            };

            var mock = testee.Instance.Create <IDummyService>();

            mock.DefaultValue.Should().Be(DefaultValue.Mock);
        }