Ejemplo n.º 1
0
        public void apiEndpoint_should_save_to_database()
        {
            ApiEndpoint apiEndpoint = new ApiEndpoint()
            {
                AccountId   = 1,
                ApiKey      = "Duiwoelskj3342ksd",
                ApiKeyType  = 2,
                Curl        = "testing",
                Endpoint    = "https://www.google.com",
                NRSQLSyntax = "Select * from Transaction",
                Title       = "Test Api Endpoint"
            };

            var result = _apiEndPointRepository.SaveEndPoint(apiEndpoint);

            Assert.IsNotNull(result);
            Assert.IsTrue(result.Id > 0);
        }
Ejemplo n.º 2
0
 public ApiEndpoint SaveEndPoint(ApiEndpoint apiEndpoint)
 {
     return(_apiEndPointRepository.SaveEndPoint(apiEndpoint));
 }