-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#25 Get all objects and refactor mock provider
RealmWinOnly.sln - add DebugMock configuration Realm.sln - added DebugMock configuration for all as copy of Debug CoreProvider.cs - copied to common CoreProvider.shared.cs Interop.Win32.csproj Interop.XamrainAndroid.csproj Interop.XamarinIOS.csproj Interop.XamarinMac.csproj - linked in CoreProviderFactory.shared.cs - removed its own CoreProvider.cs - linked in CoreProvider.shared.cs RealmNet.Tests.csproj - linked in CoreProviderFactory.shared.cs - added DebugMock configuration for AnyCPU defining MOCKING_CONFIG - discard TestHelpers\CoreProviderStub.cs (temporarily) CoreProviderFactory.shared.cs - added file WeaverTests.cs - removed using clause for Tests.TestHelpers - remove coreProviderStub_ to use ProviderFactory instead - commented out asserts checking the coreProvierStub because mock will be evaluated differently QueryTests.cs - comment out for now as expects queryProviderStub to implement different interface
- Loading branch information
1 parent
db919c4
commit d3f9acf
Showing
20 changed files
with
826 additions
and
841 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using InteropShared; | ||
using RealmNet; | ||
using RealmNet.Interop; | ||
|
||
namespace Interop.Providers | ||
{ | ||
// Helper that returns MockCoreProvider when build using the DebugMock config | ||
public static class ProviderFactory | ||
{ | ||
public static ICoreProvider Make() | ||
{ | ||
#if MOCKING_CONFIG | ||
return new MockCoreProvider(); | ||
#else | ||
return new Interop.Providers.CoreProvider(); | ||
#endif | ||
} | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 10 additions & 10 deletions
20
realm/Interop/Interop.XamarinAndroid/Resources/Resource.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.