You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
595 B
24 lines
595 B
using Model;
|
|
|
|
namespace TestEF.Model;
|
|
|
|
public class InquiryTableTest
|
|
{
|
|
[Fact]
|
|
void TestEmptyContructor()
|
|
{
|
|
InquiryTable inquiry = new InquiryTable();
|
|
Assert.Equal(0,inquiry.OwnerId);
|
|
Assert.Null(inquiry.ConnectionInfo);
|
|
Assert.Null(inquiry.DatabaseName);
|
|
}
|
|
|
|
[Fact]
|
|
void TestFullContructor()
|
|
{
|
|
InquiryTable inquiry = new InquiryTable(1,"Database","Connection");
|
|
Assert.Equal(1,inquiry.OwnerId);
|
|
Assert.Equal("Connection",inquiry.ConnectionInfo);
|
|
Assert.Equal("Database",inquiry.DatabaseName);
|
|
}
|
|
} |