Example #1
0
        static void Main(string[] args)
        {
            Shelf shelf = new Shelf(6, 5);

            Book  book = new Book(1, 20, 50, 100);
            Tools tool = new Tools(2)
            {
                Weight = 3
            };

            shelf.Store(2, 3, book);
            shelf.Store(4, 1, tool);
            shelf.Show();
            Console.WriteLine("\n");
            Console.WriteLine($"The workload is: {shelf.Workload()}%");
            Console.WriteLine("--------------------------------------");

            Program program = new Program();

            program.Test();
        }
Example #2
0
 public void Test()
 {
     shelf = new Shelf(6, 5);
     ReadCsv();
 }