public virtual void Initialize() { var dataService = new DummyDataService(); dataService.RegisterRepositoryProvider( new Func <IUnitOfWork, IDummyRepository>(work => new DummyRepository())); UnitOfWork = dataService.BeginUnitOfWork(); }
public async Task TestCheckUrlAccessFailure(string url) { try { using IDataService dataService = new DummyDataService(); await HelperMethods.CheckAndReportUrlAccessAsync(NullLogger.Instance, "test_run", url, dataService); Assert.Fail(); } catch { // Test passed } }
public async Task TestCheckUrlAccess() { using IDataService dataService = new DummyDataService(); // Test if we can access a highly available website without throwing an exception. await HelperMethods.CheckAndReportUrlAccessAsync(NullLogger.Instance, "test_run", "https://www.microsoft.com", dataService); }
public OwnedItemTable(DummyDataService dummyDataService) : base(isSearchable: false, isSortable: true, tablePageSize: 10) { _dummyDataService = dummyDataService; }
public UserProfileViewModel(DummyDataService dummyDataService) { Items = new OwnedItemTable(dummyDataService); }
public ProductTable(DummyDataService dummyDataService) : base(isSearchable: true, isSortable: true, tablePageSize: 5) { _dummyDataService = dummyDataService; }
public ListingViewModel(DummyDataService dummyDataService) { ProductList = new ProductTable(dummyDataService); }