public void TearDown()
 {
     using (var connection = new MsSqlConnectionFactory().Create())
     {
         using (var command = connection.CreateCommand())
         {
             command.CommandText = "DROP TABLE [dbo].[Products]";
             command.ExecuteNonQuery();
         }
     }
 }
        public void Setup()
        {
            using (var connection = new MsSqlConnectionFactory().Create())
            {
                using (var command = connection.CreateCommand())
                {
                    command.CommandText = @"
                        CREATE TABLE [dbo].[Products](
	                        [Id] [int] IDENTITY(1,1) NOT NULL,
	                        [Name] [nvarchar](50) NOT NULL,
	                        [Description] [nvarchar](256) NULL,
	                        [Price] [decimal](15, 2) NOT NULL,
	                        [CategoryCode] [int] NOT NULL,
                         CONSTRAINT [PK_Products] PRIMARY KEY CLUSTERED 
                        (
	                        [Id] ASC
                        )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
                        ) ON [PRIMARY]";
                    command.ExecuteNonQuery();
                }
            }
        }