예제 #1
0
 public UbsServiceTest()
 {
     Context    = InMemoryContext();
     unitOfWork = new UnitOfWork(Context);
     mapper     = new UbsMapper();
     service    = new UbsService(unitOfWork, mapper);
 }
        public void UbsService_RetornoUbs_DeveSerTrue()
        {
            mock = Substitute.For <IUbsService>();

            UbsDto ubs = new UbsDto("joão da Silva, 252, sao paulo", "Empresa XYZ", UbsAvaliacao.Bom);

            List <UbsDto> ubsLista = new List <UbsDto>();

            ubsLista.Add(ubs);

            mock.BucarUbsProximas(LAT, LO).Returns(ubsLista);
        }
예제 #3
0
 public UbsController(IUbsService ubsService)
 {
     _ubsService = ubsService;
 }
예제 #4
0
 public UbsController(IUbsService service)
 {
     this.service = service;
 }