예제 #1
0
        public void IsSuccessfulRequest()
        {
            // todo use DI
            // Arrange
            var firebaseProxy = new FirebaseProxy(new TokenProvider());

            // Act
            var response = firebaseProxy.SendTestNotification();

            // Assert
            response.Wait();
            Assert.True(response.Result.StatusCode == HttpStatusCode.OK);
        }
 public async Task <HttpResponseMessage> Post()
 {
     return(await _firebaseProxy.SendTestNotification());
 }