示例#1
0
 public ConsolePlayer(HistoryPrinter historyPrinter, DeskHistoryManager historyManager, DeskSize deskSize, CommandManager commandManager)
 {
     this.historyPrinter = historyPrinter;
     this.historyManager = historyManager;
     this.deskSize       = deskSize;
     this.commandManager = commandManager;
 }
示例#2
0
        public void PropertiesTest()
        {
            int expectedWidth  = 10;
            int expectedHeight = 10;
            int expectedCount  = 100;
            var size           = new DeskSize(expectedWidth, expectedHeight);

            Assert.AreEqual(expectedWidth, size.Width, "DeskSize width");
            Assert.AreEqual(expectedHeight, size.Height, "DeskSize height");
            Assert.AreEqual(expectedCount, size.Count, "DeskSize count");
        }
示例#3
0
 public Employee(string firstName, string lastName, DeskSize deskSize)
 {
     FirstName = firstName;
     LastName  = lastName;
     DeskSize  = deskSize;
 }