Esempio n. 1
0
        public void Read_All_Repairs()
        {
            var repairContextMock = new Mock <DB.Interface.IDatabaseService>();

            repairContextMock.Setup(x => x.Repairs).Returns(repairsMock.Object);

            var repairService = new RepairService(repairContextMock.Object);
            var repairs       = repairService.GetAll();

            Assert.IsTrue(repairs.Count == 3);
        }