Skip to content

Commit

Permalink
fix connection string; replace sproc with an actual sproc.
Browse files Browse the repository at this point in the history
  • Loading branch information
tsahi committed Jul 16, 2020
1 parent 6d6f68f commit bd39d95
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/Tests/Oracle.Tests.VSTS/SprocAccessorFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@
*/

using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using Microsoft.Practices.EnterpriseLibrary.Common.TestSupport.ContextBase;
using Microsoft.Practices.EnterpriseLibrary.Data.Oracle.Tests.TestSupport;
using Microsoft.VisualStudio.TestTools.UnitTesting;
Expand All @@ -33,13 +32,14 @@ public class WhenSprocAccessorIsCreatedForOracleDatabase : ArrangeActAssert
protected override void Arrange()
{
EnvironmentHelper.AssertOracleClientIsInstalled();
database = new OracleDatabase("server=entlib;user id=testuser;password=testuser");
String connectionString = ConfigurationManager.ConnectionStrings["OracleTest"].ConnectionString;
database = new OracleDatabase(connectionString);
}

[TestMethod]
public void ThenCanExecuteParameterizedSproc()
{
var accessor = database.CreateSprocAccessor<Customer>("GetCustomersTest");
var accessor = database.CreateSprocAccessor<Customer>("GetCustomerById");
var result = accessor.Execute("BLAUS", null).ToArray();

Assert.IsNotNull(result);
Expand Down

0 comments on commit bd39d95

Please sign in to comment.