public void DynamicMvvm_extensions_work_for_typed_version() { IDataLoaderBuilder <string> builder = new DataLoaderBuilder <string>(); builder = builder.TriggerOnValueChanged(new DynamicProperty("MyProperty")); builder = builder.TriggerOnCommandExecution(new DynamicCommand("MyCommand", new ActionCommandStrategy(() => { }))); Assert.NotNull(builder); }
public void Default_extensions_work_for_typed_version() { IDataLoaderBuilder <string> builder = new DataLoaderBuilder <string>(); builder = builder.WithName("name"); builder = builder.WithLoadMethod(null); builder = builder.WithEmptySelector <string>(null); builder = builder.WithConcurrentMode(DataLoaderConcurrentMode.CancelPrevious); builder = builder.WithStrategy(null); builder = builder.WithTrigger(d => new ManualDataLoaderTrigger()); builder = builder.WithTrigger(new ManualDataLoaderTrigger()); builder.Should().NotBeNull(); }