public void GetConfigurations_Should_return_null_When_no_config_registration_exists() { var configs = new StructureTypeConfigurations(); var config = configs.GetConfiguration(typeof(Dummy)); config.Should().BeNull(); }
public void Generic_GetConfigurations_WhenNoConfigurationExists_ReturnsDefaultConfig() { var configs = new StructureTypeConfigurations(); var config = configs.GetConfiguration <Dummy>(); Assert.IsTrue(config.IndexConfigIsEmpty); Assert.IsFalse(config.MemberPathsBeingIndexed.Any()); Assert.IsFalse(config.MemberPathsNotBeingIndexed.Any()); }
public void GetConfigurations_WhenRegistreredViaNonGenericVersion_ConfigurationIsReturned() { var configs = new StructureTypeConfigurations(); configs.Configure(typeof(Dummy), cfg => { }); var config = configs.GetConfiguration(typeof(Dummy)); Assert.IsNotNull(config); Assert.AreEqual(typeof(Dummy), config.Type); }
public void GetConfigurations_WhenRegistreredViaGenericVersion_ConfigurationIsReturned() { var configs = new StructureTypeConfigurations(); configs.Configure <Dummy>(cfg => { }); var config = configs.GetConfiguration(typeof(Dummy)); Assert.IsNotNull(config); Assert.AreEqual(typeof(Dummy), config.Type); }
public void GetConfigurations_Should_return_config_When_registrated_via_generic_version() { var configs = new StructureTypeConfigurations(); configs.Register <Dummy>(cfg => { }); var config = configs.GetConfiguration(typeof(Dummy)); Assert.IsNotNull(config); Assert.AreEqual(typeof(Dummy), config.Type); }
public void Generic_GetConfigurations_WhenNoConfigurationExists_ReturnsDefaultConfig() { var configs = new StructureTypeConfigurations(); var config = configs.GetConfiguration<Dummy>(); Assert.IsFalse(config.IncludeContainedStructureMembers); Assert.IsTrue(config.IndexConfigIsEmpty); Assert.IsFalse(config.MemberPathsBeingIndexed.Any()); Assert.IsFalse(config.MemberPathsNotBeingIndexed.Any()); }
public void GetConfigurations_WhenNoConfigurationExists_ReturnsNull() { var configs = new StructureTypeConfigurations(); var config = configs.GetConfiguration<Dummy>(); Assert.IsTrue(config.IndexConfigIsEmpty); Assert.IsFalse(config.MemberPathsBeingIndexed.Any()); Assert.IsFalse(config.MemberPathsNotBeingIndexed.Any()); }