protected override void Arrange() { base.Arrange(); validationModel = Container.Resolve <ValidationModel>(); cacheManagerCollection = CachingSettingsViewModel.GetDescendentsOfType <NameTypeConfigurationElementCollection <CacheManagerDataBase, CustomCacheManagerData> >().OfType <ElementCollectionViewModel>().Single(); var newItem = cacheManagerCollection.AddNewCollectionElement(typeof(CacheManagerData)); newItem.Property("Name").BindableProperty.BindableValue = ""; originalCount = validationModel.ValidationResults.Count(); }
protected override void Arrange() { base.Arrange(); validationModel = Container.Resolve <ValidationModel>(); cacheManager = CachingSettingsViewModel.DescendentElements(x => x.ConfigurationType == typeof(CacheManagerData)).First(); var bindableProperty = cacheManager.Property("ExpirationPollFrequencyInSeconds").BindableProperty; bindableProperty.BindableValue = "Invalid"; result = bindableProperty.Property.ValidationResults.First(); }
protected override void Arrange() { base.Arrange(); validationModel = Container.Resolve <ValidationModel>(); cacheManager = CachingSettingsViewModel.DescendentElements(x => x.ConfigurationType == typeof(CacheManagerData)).First(); }