public async Task GetOutletById_Success()
        {
            //arrange
            var Bed = PrepareOutlet().First();

            OuletRepoMock.Setup(p => p.GetByIdAsync(It.IsAny <int>())).ReturnsAsync(Bed);

            //act
            var service = new OutletService(RepoHelperMock.Object, MapperMock.Object);
            var result  = await service.GetOutletById(1);

            //Assert
            Assert.IsTrue(result.IsSuccess);
        }
Beispiel #2
0
 public OutletsController(OutletService os)
 {
     outletService = os;
 }
        public OutletRepository GetOutletRepository()
        {
            OutletService service = OutletService.GetInstance();

            return(OutletRepository.GetInstance(service));
        }