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); }
public UbsController(IUbsService ubsService) { _ubsService = ubsService; }
public UbsController(IUbsService service) { this.service = service; }