<commit_before>﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using CustomHandlers.DatabaseLibrary;


namespace UnitTests
{
    [TestClass]
    public class UnitTest
    {
        [TestMethod]
        public void ConnectToDatabase()
        {
            SqlConnectionBuilder CB = new SqlConnectionBuilder("(localdb)\\V11.0", "PizzaWaiter", "", "");
            Assert.IsTrue(CB.CheckConnection());
        }

        /*
        
        [TestMethod]
        public void GetAllMenues(int RestID)
        {
            
            RestDB restdb = new RestDB();

            Rest rest = RestDB.GetByID(RestID);

            Assert.IsNull(rest);
            List<Menu> menues = Rest.Menues.OrderBy(menu => menu.Pos);
            Assert.IsNull(menues);
            foreach (Menu menu in menues)
            {
                Assert.IsNull(menu.Dishes);
                //Style all the dishes<commit_msg>unittests for getting the menu from wcf.<commit_after>﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using CustomHandlers.DatabaseLibrary;
using UnitTests.PizzaWaiterUnitTestServiceReference;


namespace UnitTests
{
    [TestClass]
    public class UnitTest
    {
        /*[TestMethod]
        public void ConnectToDatabase()
        {
            SqlConnectionBuilder CB = new SqlConnectionBuilder("(localdb)\\V11.0", "PizzaWaiter", "", "");
            Assert.IsTrue(CB.CheckConnection());
        }
        */

        [TestMethod]
        public void ConnectToWCF()
        {
            IPizzaWaiterTestService proxy = new PizzaWaiterTestServiceClient();
            Restaurant r = proxy.getAllMenues(1);
            Assert.IsNull(r.Menues);
        }

        [TestMethod]
        public void ReceiveOrders()
        {
            //Prioritized test
            //Deleted test
            //Changed status test
        }
        
        
        /*[TestMethod]
        public void GetAllMenues(int RestID)
        {
            
            RestDB restdb = new RestDB();

            Rest rest = RestDB.GetByID(RestID);

            Assert.IsNull(rest);
            List<Menu> menues = Rest.Menues.OrderBy(menu => menu.Pos);
            Assert.IsNull(menues);
            foreach (Menu menu in menues)
            {
                Assert.IsNull(menu.Dishes);
                //Style all the dishes
{'fraction_non_alphanumeric': 0.0959079283887468, 'fraction_numerical': 0.0029838022165387893, 'mean_word_length': 1.7644287396937575, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6602706', 'n_tokens_mistral': 637, 'n_tokens_neox': 627, 'n_words': 130}