private static Mock <FirestoreClient> CreateMockClient() { var mock = new Mock <FirestoreClient> { CallBase = true }; mock.SetupProperty(c => c.Settings, FirestoreSettings.GetDefault()); return(mock); }
internal FakeFirestoreClient() { Settings = FirestoreSettings.GetDefault(); }
/// <summary> /// Creates a client which will respond to the first <paramref name="failures"/> commit calls with <paramref name="exception"/>. /// </summary> public TransactionTestingClient(int failures, Exception exception) { Settings = FirestoreSettings.GetDefault(); _failures = failures; _exception = exception; }