public void Machine_Application_Save_Test() { var service = new MachineApplicationService(_unitOfWork, _machineInfoRepository, _mapper); var result = service.Save(_machine); Assert.AreEqual(true, result); }
public void Machine_Application_Remove_Test() { var service = new MachineApplicationService(_unitOfWork, _machineInfoRepository, _mapper); service.Save(_machine); service.Update(_machine); _mockMachineRepository.Verify(x => x.Update(It.IsAny <LocalMachineInfo>()), Times.Once); }
public void Machine_Application_Get_All_Test() { var service = new MachineApplicationService(_unitOfWork, _machineInfoRepository, _mapper); service.Save(_machine); var listResult = service.GetAll(); Assert.AreEqual(1, listResult.Count()); }
public void Machine_Application_Get_By_Id_Test() { var service = new MachineApplicationService(_unitOfWork, _machineInfoRepository, _mapper); service.Save(_machine); var result = service.GetById(_machine.Id); Assert.IsNotNull(result); }