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();
 }
Exemple #3
0
 /// <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;
 }