public async Task UpdatePrinter_ValidRequest_ShouldCommit()
        {
            //Arrange
            var guid        = Guid.Parse("BF521211-CEAF-4DCA-82C7-40446D4C46ED");
            var fakePrinter = new SiteConfiguration.API.Printers.Models.Data.Printer
            {
                PrinterKey      = guid,
                PrinterModelKey = guid
            };

            var fakePrinterModel = new SiteConfiguration.API.Printers.Models.Data.PrinterModel
            {
                PrinterModelKey = guid
            };

            var fakePrinterRequest = new PrinterRequest();

            _printerRepository.Setup(x => x.GetAsync(It.IsAny <Guid>())).ReturnsAsync(fakePrinter);
            _printerModelRepository.Setup(x => x.GetAsync(It.IsAny <Guid>())).ReturnsAsync(fakePrinterModel);

            //Act
            await printerBusiness.UpdatePrinter(guid, guid, fakePrinterRequest);

            //Assert
            _unitOfWork.Verify(x => x.CommitChanges(), Times.Once);
        }
        public async Task GetPrinterByKey_ValidPrinterKey_ShouldReturnPrinter()
        {
            //Arrange
            var guid            = Guid.Parse("BF521211-CEAF-4DCA-82C7-40446D4C46ED");
            var mockPrinterName = "xyz";
            var fakePrinter     = new SiteConfiguration.API.Printers.Models.Data.Printer
            {
                PrinterName = mockPrinterName
            };

            _printerRepository.Setup(x => x.GetAsync(It.IsAny <Guid>())).ReturnsAsync(fakePrinter);

            //Act
            var response = await printerBusiness.GetPrinterByKey(guid);

            //Assert
            Assert.Equal(mockPrinterName, response.Name);
        }
        public async Task GetPrintersByFacility_ValidFacilityKey_ShouldReturnPrinters()
        {
            //Arrange
            var guid        = Guid.Parse("BF521211-CEAF-4DCA-82C7-40446D4C46ED");
            var fakePrinter = new SiteConfiguration.API.Printers.Models.Data.Printer
            {
                PrinterKey = guid
            };


            var mockList = new List <SiteConfiguration.API.Printers.Models.Data.Printer>();

            mockList.Add(fakePrinter);

            _printerRepository.Setup(x => x.GetPrintersByFacility(It.IsAny <Guid>())).ReturnsAsync(mockList);

            //Act
            var response = await printerBusiness.GetPrintersByFacility(guid);

            //Assert
            Assert.Equal(guid, response.First().Key);
        }