Exemplo n.º 1
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     using (PrintViewerContext cntx = new PrintViewerContext())
     {
         IRepository repository = new CntxRepository(cntx);
         Application.Run(new MainForm(repository));
     }
 }
Exemplo n.º 2
0
        public void GetComputerByNameTestIsNullIfNotExistsInDB()
        {
            PrintViewerContext cntx            = new PrintViewerContext();
            CntxRepository     repository      = new CntxRepository(cntx);
            Computer           currentComputer = null;

            Computer computer = repository.GetComputerByName("izmisljeno");

            Assert.AreEqual(currentComputer, computer);


            //Assert.Fail();
        }