示例#1
0
        public void Find_non_existing_object()
        {
            MapObjectService mapObjectService = new MapObjectService(CreateStubRepository());

            MapObject mapObject = mapObjectService.GetMapObjectById(13);

            mapObject.ShouldBeNull();
        }
        public void Find_existing_object()
        {
            MapObjectService mapObjectService = new MapObjectService(CreateStubRepository());

            List <MapObject> mapObjects = mapObjectService.GetNeighborMapObjects(11);

            mapObjects.ShouldNotBeEmpty();
        }
        public void Map_object_search_for_non_existing_object()
        {
            var mapObjects         = CreateMapObjectList();
            var searchedMapObjects = new List <MapObject>();

            MapObjectService mapObjectService = new MapObjectService(createStubRepository());

            searchedMapObjects = mapObjectService.SearchMapObjects("", "Canteen");

            searchedMapObjects.ShouldBeEmpty();
        }
        public void Map_object_search_for_existing_object()
        {
            var mapObjects         = CreateMapObjectList();
            var searchedMapObjects = new List <MapObject>();

            MapObjectService mapObjectService = new MapObjectService(createStubRepository());

            searchedMapObjects = mapObjectService.SearchMapObjects("Examination", AllConstants.EmptyComboBox);

            searchedMapObjects.ShouldNotBeEmpty();
        }