Hi,
I have created a new test unit project.
Please, have a look the following code:
Imports System.Text
Imports System.Linq
Imports Microsoft.VisualStudio.TestTools.UnitTesting
Imports Hitachi.DataAccess.Db
<TestClass()> Public Class UnitTest1
Private Const Buenos_Aires As Integer = 1
Private Const New_York As Integer = 2
Private Const Liverpool As Integer = 3
Private Const Casa_Blanca As Integer = 4
Private Const Cape_Town As Integer = 5
Dim db As hitachiEntities
<TestInitialize()>
Public Sub CreateList()
--Here I want to create a list that will have all the data that the Roles_result have (rules result is a complex type - function).
--This list will be used in the next tests.
-- I tried to create the list as This:
db = New hitachiEntities
Dim Lista = From Rotes_Result In db.Rotes
Select Rotes_Result.list
--But It does not work...
-- How can I load the db.rotes object in the List?
End Sub
<TestMethod()>
Public Sub ReturnJorneyBNL()
-- Where I want to make the test.
-- I need to query the list (the column DIST) and see what value the list returns if I pass the values Buenos_aires & "," & New_York & "," & Liverpool & ","
End Sub
Can someone help?
Thanks
I have created a new test unit project.
Please, have a look the following code:
Imports System.Text
Imports System.Linq
Imports Microsoft.VisualStudio.TestTools.UnitTesting
Imports Hitachi.DataAccess.Db
<TestClass()> Public Class UnitTest1
Private Const Buenos_Aires As Integer = 1
Private Const New_York As Integer = 2
Private Const Liverpool As Integer = 3
Private Const Casa_Blanca As Integer = 4
Private Const Cape_Town As Integer = 5
Dim db As hitachiEntities
<TestInitialize()>
Public Sub CreateList()
--Here I want to create a list that will have all the data that the Roles_result have (rules result is a complex type - function).
--This list will be used in the next tests.
-- I tried to create the list as This:
db = New hitachiEntities
Dim Lista = From Rotes_Result In db.Rotes
Select Rotes_Result.list
--But It does not work...
-- How can I load the db.rotes object in the List?
End Sub
<TestMethod()>
Public Sub ReturnJorneyBNL()
-- Where I want to make the test.
-- I need to query the list (the column DIST) and see what value the list returns if I pass the values Buenos_aires & "," & New_York & "," & Liverpool & ","
End Sub
Can someone help?
Thanks